background mode doesnt work and the app is closed
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?
Hi. Try with it moveToBackground() https://github.com/ugenit/cordova-plugin-background-mode#transit-between-application-states
Could you try: https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background/src/master/
Could you try: https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background/src/master/
Thanks, this WORKS :-)
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.
Could you try: https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background/src/master/
Same here. This works on Android, not the original plugin.