nativescript-community / insomnia

:sleepy: NativeScript plugin to keep the device awake (not dim the screen, lock, etc)
41 stars 11 forks source link

IOS application crash in Xcode after using insomnia.keepAwake #11

Open prabh08 opened 4 years ago

prabh08 commented 4 years ago

I am working on Nativescript 6 + Javascript application and I have used insomnia in my code but my application is getting crash due to 'insomnia'.

Here is further error when my application is crash due to insomnia And my IOS version is 13.1.

2019-11-28 01:03:20.954926+0530 salesrepmobile[19942:14434690] *** Assertion failure in

  • [FBSSerialQueue assertOnQueue], /BuildRoot/Library/Caches/com.apple.xbs/Sources/FrontBoardServices_Sim/FrontBoard- 619.2/FrontBoardServices/FBSSerialQueue.m:98 (lldb)

Please help me. I am really stuck on this.

EddyVerbruggen commented 4 years ago

Is there a way for me to reproduce this perhaps? Maybe you can share a little project that reproduces it?

prabh08 commented 4 years ago

@EddyVerbruggen Acually due to some legel boundation I can not share it. But I am very much sure that is due to insomnia.keepWake() function. Please help me. One more thing I want to let you know that insomnia.allowSleepAgain() is working for me but keepAwake not working.

EddyVerbruggen commented 4 years ago

I didn’t mean I want your project, but simply a project that demonstrates the problem.

prabh08 commented 4 years ago

@EddyVerbruggen Can we share it on skype? I can add you on skype and we share the screen session.

EddyVerbruggen commented 4 years ago

No. I need code, not a demonstration. If you want me to look at it in my spare time then please make it simple for me to reproduce the issue by creating a new project with this plugin that demonstrates the problem.

prabh08 commented 4 years ago

@EddyVerbruggen Ok I will share my code soon.