Start service only if not already started
This commit is contained in:
parent
98f2544adb
commit
96663a36e8
@ -185,7 +185,7 @@ public class BackgroundMode extends CordovaPlugin {
|
||||
Intent intent = new Intent(
|
||||
context, ForegroundService.class);
|
||||
|
||||
if (isDisabled) {
|
||||
if (isDisabled || isBind) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user