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


  • Monaca

    @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.


Log in to reply