katzer / cordova-plugin-background-mode

Keep app running in background
Apache License 2.0
1.38k stars 1.02k forks source link

App is running in background doing heavy tasks. Even after configuring silent mode. #392

Open deligence opened 6 years ago

deligence commented 6 years ago

I'm using 0.7.2 version of this plugin in my project and I've tried all the below-mentioned settings but I'm still getting "App is running in background doing heavy tasks" notification.

  1. cordova.plugins.backgroundMode.setDefaults({ title: '', text: '', icon: 'icon', color: '#ffffff', resume: false, hidden: true, bigText: false });
    1. cordova.plugins.backgroundMode.configure({ silent: true }); 3 .cordova.plugins.backgroundMode.setDefaults({ silent: true });
EinfachHans commented 4 years ago

You solved this somehow? It appears to me as well.

elduglas commented 4 years ago

try it with..

this.backgroundMode.configure({ text: 'Your message' });