Closed boltex closed 9 years ago
Me too. I'm using ionic framework and this plugin, but when i build it to my device, my app is successfully running in the background. But when i tried to call .disable(), the apps still running in the background.
Also, it crashes when quitting, either by pressing 'back' or by doing ionic.Platform.exitApp(); It's not very gracefull because a popup dialog appears saying that the app crashed... :(
I would like to be able to quit the application in a clean manner
Side note: I noticed that in his plugin he tries to override the back button but it doesn't work. I do successfully override the back button in my own programs with $ionicPlatform.registerBackButtonAction(function(e){ blablabla; });
I'm having issues too - have installed the plugin and it does work in Android - my app does run in the background, but I cannot disable or configure. Note that the plugin causes the app to run in the background without any commands issued to it.
I'd like to be able to disable/enable as needed as well as configure it.
Also, the documentation shows this:
window.plugin.backgroundMode.enable()
and
cordova.plugins.backgroundMode.enable()
.....may want to edit that for consisterncy.
HTC One M8, Android 4.4.4
Everything works fine with the last version! THANK YOU MAN !
On android with latest ionic framework :
I'm trying to use this plugin, so far it does keep the app running in background but I get errors when i try to call window.plugin.backgroundMode.disable();
(or enable() or configure()... )
I get: Service not Registered: de.appplant.cordova.plugin.background.BackgroundMode