Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Wakeuptimer on Monaca doesn't seem to work
-
Hi!
I’m trying to use wakeuptimer cordova plugin but after installing it correctly in Build->Project->Cordova Plugins it seems there’s a compatibility or timing problem somewhere. This doesn’t work:ons.ready(function() { console.log(window.wakeuptimer); // returns "undefined" });
Note that I’ve used this same version (v1.0.2) of the plugin successfully outside on Monaca and it worked great.
Does anyone know how to solve this problem or suggest an alternative?
Thanks in advance!PS: Link to plugin: https://github.com/jkhax0r/cordova-plugin-wakeuptimer
-
@rcpinheiro How did you test the project? Using standard Monaca Debugger (installed from the store)? When using external Cordova plugin(s), you need to use custom Monaca Debugger. Please refer to:
-
@khemry Thanks! It worked but only when running as a APK, don’t know why it doesn’t work on Custom Debugger.