Disabled by default

This commit is contained in:
Sebastián Katzer 2014-11-12 23:04:01 +01:00
parent 01202bb250
commit ffd81e00c2
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ public class BackgroundMode extends CordovaPlugin {
private boolean inBackground = false; private boolean inBackground = false;
// Flag indicates if the plugin is enabled or disabled // Flag indicates if the plugin is enabled or disabled
private boolean isDisabled = false; private boolean isDisabled = true;
// Flag indicates if the service is bind // Flag indicates if the service is bind
private boolean isBind = false; private boolean isBind = false;
@ -61,7 +61,6 @@ public class BackgroundMode extends CordovaPlugin {
@Override @Override
public void onServiceDisconnected(ComponentName name) { public void onServiceDisconnected(ComponentName name) {
Log.w("BackgroundMode", "Service disrupted"); Log.w("BackgroundMode", "Service disrupted");
//stopService();
} }
}; };

View File

@ -31,7 +31,7 @@
*/ */
- (void) pluginInitialize - (void) pluginInitialize
{ {
[self enable:NULL]; [self disable:NULL];
[self configureAudioPlayer]; [self configureAudioPlayer];
[self configureAudioSession]; [self configureAudioSession];
} }
@ -61,6 +61,7 @@
object:nil]; object:nil];
} else { } else {
[self enable:NULL];
[self keepAwake]; [self keepAwake];
} }
} }