cordova-plugin-background-mode icon indicating copy to clipboard operation
cordova-plugin-background-mode copied to clipboard

background mode doesnt work and the app is closed

Open Absant94 opened this issue 5 years ago • 5 comments

Hi! Im starting to use this plugin on an app with a login, that when is succes the app conects tu a bluetooth device, the problem is that in my app when in the constructor y launch:

this.backgrounmode.enable();

On foreground the app works without problems but when I move the app to background all the activivy is sttoped and bluetooth device is disconected .So, when I take the app again to the foreground It takes me to the first view and I should do login again.

What am I doing wrong?

Absant94 avatar Jul 13 '20 15:07 Absant94

Hi. Try with it moveToBackground() https://github.com/ugenit/cordova-plugin-background-mode#transit-between-application-states

elduglas avatar Aug 08 '20 18:08 elduglas

Could you try: https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background/src/master/

danielehrhardt avatar Sep 15 '20 14:09 danielehrhardt

Could you try: https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background/src/master/

Thanks, this WORKS :-)

ragcsalo avatar Sep 19 '20 17:09 ragcsalo

Could you try: https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background/src/master/

It works for Android 10, but not for iOS 14.2. The current code on npm works for iOS 14.2 but not for Android 10.

melkholy12 avatar Dec 16 '20 19:12 melkholy12

Could you try: https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background/src/master/

Same here. This works on Android, not the original plugin.

customautosys avatar Jan 06 '21 05:01 customautosys