Commit bb0a5d93 authored by Mark Pearce's avatar Mark Pearce

fixed some wrong indexes in config functions

parent 60f1ef01
......@@ -71,7 +71,7 @@ public class BackgroundGpsPlugin extends CordovaPlugin {
result = true;
try {
// Params.
// 0 1 2 3 4 5 6 7 8 8 9 10
// 0 1 2 3 4 5 6 7 8 9 10 11
//[params, headers, url, stationaryRadius, distanceFilter, locationTimeout, desiredAccuracy, debug, notificationTitle, notificationText, activityType, stopOnTerminate]
this.params = data.getString(0);
this.headers = data.getString(1);
......@@ -83,7 +83,7 @@ public class BackgroundGpsPlugin extends CordovaPlugin {
this.isDebugging = data.getString(7);
this.notificationTitle = data.getString(8);
this.notificationText = data.getString(9);
this.stopOnTerminate = data.getString(10);
this.stopOnTerminate = data.getString(11);
} catch (JSONException e) {
callbackContext.error("authToken/url required as parameters: " + e.getMessage());
}
......
......@@ -101,8 +101,8 @@
{
// in iOS, we call to javascript for HTTP now so token and url should be @deprecated until Android calls out to javascript.
// Params.
// 0 1 2 3 4 5 6 7 8 8 9
//[params, headers, url, stationaryRadius, distanceFilter, locationTimeout, desiredAccuracy, debug, notificationTitle, notificationText, activityType]
// 0 1 2 3 4 5 6 7 8 9 10 11
//[params, headers, url, stationaryRadius, distanceFilter, locationTimeout, desiredAccuracy, debug, notificationTitle, notificationText, activityType, stopOnTerminate]
// UNUSED ANDROID VARS
//params = [command.arguments objectAtIndex: 0];
......@@ -113,8 +113,8 @@
locationTimeout = [[command.arguments objectAtIndex: 5] intValue];
desiredAccuracy = [self decodeDesiredAccuracy:[[command.arguments objectAtIndex: 6] intValue]];
isDebugging = [[command.arguments objectAtIndex: 7] boolValue];
activityType = [self decodeActivityType:[command.arguments objectAtIndex:9]];
stopOnTerminate = [[command.arguments objectAtIndex: 10] boolValue];
activityType = [self decodeActivityType:[command.arguments objectAtIndex:10]];
stopOnTerminate = [[command.arguments objectAtIndex: 11] boolValue];
self.syncCallbackId = command.callbackId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment