forked from Github/cordova-plugin-run-in-background
Start service only if not already started
This commit is contained in:
@@ -185,7 +185,7 @@ public class BackgroundMode extends CordovaPlugin {
|
|||||||
Intent intent = new Intent(
|
Intent intent = new Intent(
|
||||||
context, ForegroundService.class);
|
context, ForegroundService.class);
|
||||||
|
|
||||||
if (isDisabled) {
|
if (isDisabled || isBind) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user