katzer / cordova-plugin-background-mode

Keep app running in background
Apache License 2.0
1.38k stars 1.02k forks source link

npmregistry not reflecting last updates #336

Open nmarquesb opened 6 years ago

nmarquesb commented 6 years ago

Hello, In my IOnic v3 project, I was trying to make a call to isScreenOff function, but i had no response and no error. After investigation, this method isScreenOff was not defined in background-mode.js

I added the cordova-plugin-bakcground-mode with

$ ionic cordova plugin add cordova-plugin-background-mode
$ npm install --save @ionic-native/background-mode

wich resolved in my project to the location url : https://registry.npmjs.org/cordova-plugin-background-mode/-/cordova-plugin-background-mode-0.7.2.tgz wich is correct. But this archive doesn't reflect last repo updates with fixes for isScreenOff, wakeUp and unlock methods.

I think the issue is caused because the package version didn't changed (still in 0.7.2) and npmregistry didn't update the archive ? maybe ?

For information and a workaround, i then forced resolution to the github repo with a

npm install katzer/cordova-plugin-background-mode --save
jasperkuperus commented 6 years ago

What's the status on this, could we push a new version to npm?