-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The plugin does not work in the background for more than 30 minutes #497
Comments
In attach a simple test (.ts and .html files) I used to test the plugin with Android 8 and 9. I hope it help. |
The problem is it seems that the plugin works only for a while, in my tests it lasted up to an hour, but then it closes .. my app needs to do a pooling to keep a company online and receive orders. a function: this.bkgng.moveToBackground(); |
Make sure you don't disable the running notification. |
Hey, Did you find something which keeps the app running ? I have a similar requirement - Delivery app - suppliers wants continuous bell even if app is closed till action Please guide me as you have already tried all this |
I was having the same problem. I manage to fix it by doing:
|
where do you put this event ? |
I have put it like this:
(However, changing the notification parameters doess not work.) |
I'm try this event ,But the app will be called every time when switching to another app Makes it impossible to use other apps easily |
The plugin does not work in the background for more than 30 minutes. My code is this:
init() {
this.platform.ready().then(() => {
this.activeBackgroundMode();
this.powerManagement.dim();
this.powerManagement.setReleaseOnPause(false);
});
}
activeBackgroundMode(){
this.backgroundMode.enable();
this.backgroundMode.on('activate').subscribe(() => {
this.backgroundMode.disableWebViewOptimizations();
this.backgroundMode.disableBatteryOptimizations();
already updated the plun but contained not working.
Can someone help me!!
The text was updated successfully, but these errors were encountered: