Problems using the background-mode plugin


When using the unlock function I am getting the following message: cordova.plugins.backgroundMode.unlock is not a function. But other functions like moveToForeground, are working perfectly. When checking the background-mode.js file, in the plugin folder in my application I could see that the unlock function as well as wakeUp really were not set, making the file in the plugin directory in my project different from the existing file in the plugin repository No github. Why is this happening? How can I solve this problem?

Thank you all, and sorry for my english rsrsrs

Please provide links to the plugins and code versions you are using (Github, NPM, Ionic Native etc). Then we can look at it and don’t have to guess and Google around trying to help you.

Ok friend, see the information:

Link to plugin:
NPM version: 3.10.6
Ionic native: 2.2.11
Cordova CLI: 6.1.1
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.47
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v4.1.0
Xcode version: Not installed


Do you have the described problems on iOS or Android? Emulator or real device?