Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cordova-plugin-background-geolocation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Aksimaya
cordova-plugin-background-geolocation
Commits
bb0a5d93
Commit
bb0a5d93
authored
Sep 15, 2014
by
Mark Pearce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some wrong indexes in config functions
parent
60f1ef01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
BackgroundGpsPlugin.java
src/android/BackgroundGpsPlugin.java
+2
-2
CDVBackgroundGeoLocation.m
src/ios/CDVBackgroundGeoLocation.m
+4
-4
No files found.
src/android/BackgroundGpsPlugin.java
View file @
bb0a5d93
...
...
@@ -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
(
1
0
);
this
.
stopOnTerminate
=
data
.
getString
(
1
1
);
}
catch
(
JSONException
e
)
{
callbackContext
.
error
(
"authToken/url required as parameters: "
+
e
.
getMessage
());
}
...
...
src/ios/CDVBackgroundGeoLocation.m
View file @
bb0a5d93
...
...
@@ -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
:
1
0
]
boolValue
];
activityType
=
[
self
decodeActivityType
:[
command
.
arguments
objectAtIndex
:
10
]];
stopOnTerminate
=
[[
command
.
arguments
objectAtIndex
:
1
1
]
boolValue
];
self
.
syncCallbackId
=
command
.
callbackId
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment