-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not make it work on a Nativescript-Vue project #6
Comments
@RosilBelli not sure if you still need help with this. I found in my NativeScript-Javascript project i was calling the KeepAwake too early. Once i moved it to like a page load it worked just fine |
Hi @LorenDorez! Thanks for your reply. I'm going to try that too and see if it works on my project as soon as I can! |
I was trying to load my on the App Launch Event and it was crashing |
For anyone reading this: it's not specifically related to Vue because if you do this too early in fi. an Angular app you get the same error (just call To harden against this type of usage (you may rethink whether or not you want your app to always keep the screen on though) I'll have the plugin listen to the |
Available in 1.2.2, right now. |
@EddyVerbruggen |
NVM appears im still running the older version and getting reports of phones still sleeping. ill create a new issue |
Hi!
I'm trying to use this plugin within a nativescript-vue project but I aways get this error when keepAwake is called:
TypeError: Cannot read property 'getWindow' of undefined'
Actually, I'm trying to run on android platform. Nativescript version is 4.1.
Thanks!
The text was updated successfully, but these errors were encountered: