n1705771

Results 27 comments of n1705771

I have the same issue with background mode. The app stops after 5 minutes if not power plug in. But it works well when I plug power cable in my...

@devi255 It doesn't work for me. still stop in 5 minutes. thx

@ziyaddin Thanks. Do you mean latest "katzer" version or "tushe" version? I installed katzer version is: @ionic-native/background-mode": "^4.20.0"

@mpfurnari Does wakelock help background mode works longer time in your case? I added power management's wakelock in my app too, but it doesn't help.

@mpfurnari Thanks, I did the same thing in my ionic app, but it doesn't work well. My code is: if (this.platform.is('android')){ this.backgroundMode.enable(); this.powerManagement.dim().then((value)=>{ console.log('enablebackground: Wakelock acquired'); this.powerManagement.setReleaseOnPause(false).then(()=>{ console.log('enablebackground: setReleaseOnPause success');...

It only works if device is plugged in power cable. I don't know why this happens...

@boedy I have changed the plugin.xml according to your commits, but it doesn't work for me. Is there any other code I need to modified?

@boedy Thanks. Is there a plugin.xml file also in platforms/android?

@Entrecampos Thanks. for my Huawei Mate 10, I installed the latest plugin and added function: this.backgroundMode.disableBatteryOptimizations(); After turning off the power save mode in battery setting, it starts to work...