NativeScript / ios-jsc

NativeScript for iOS using JavaScriptCore
http://docs.nativescript.org/runtimes/ios
Apache License 2.0
298 stars 59 forks source link

Implement idle timer in native script 7 application #1284

Open harishchopra86 opened 3 years ago

harishchopra86 commented 3 years ago

Is there a way to implement idle timer in NativeScript iOS. I am using nativescript 7 and already tried: https://stackoverflow.com/questions/48788676/detect-app-inactivity-idle-timeout-in-nativescript

However in NativeScript 7, adding and initializing custom UIWindow does not works. Secondly I tried to set a custom window on appStart with application.ios.window = CustomWindow but that did not work either.

Please advise if there is a way to achieve this. I need to get all user events.

Thanks.