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
570c5911
Commit
570c5911
authored
Feb 26, 2014
by
Chris Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change auth_token param to authToken, update example and README
parent
1b045a14
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
README.md
README.md
+2
-0
index.js
example/www/js/index.js
+2
-0
BackgroundGeoLocation.js
www/BackgroundGeoLocation.js
+1
-1
No files found.
README.md
View file @
570c5911
...
...
@@ -68,6 +68,8 @@ A full example could be:
// BackgroundGeoLocation is highly configurable.
bgGeo.configure(callbackFn, failureFn, {
url: 'http://only.for.android.com/update_location.json', // <-- only required for Android; ios allows javascript callbacks for your http
authToken: 'user_secret_auth_token', // <-- only required for Android; ios allows javascript callbacks for your http
desiredAccuracy: 10,
stationaryRadius: 20,
distanceFilter: 30,
...
...
example/www/js/index.js
View file @
570c5911
...
...
@@ -90,6 +90,8 @@ var app = {
// BackgroundGeoLocation is highly configurable.
bgGeo
.
configure
(
callbackFn
,
failureFn
,
{
url
:
'
http://only.for.android.com/update_location.json
'
,
// <-- only required for Android; ios allows javascript callbacks for your http
authToken
:
'
user_secret_auth_token
'
,
// <-- only required for Android; ios allows javascript callbacks for your http
desiredAccuracy
:
10
,
stationaryRadius
:
20
,
distanceFilter
:
30
,
...
...
www/BackgroundGeoLocation.js
View file @
570c5911
var
exec
=
require
(
"
cordova/exec
"
);
module
.
exports
=
{
configure
:
function
(
success
,
failure
,
config
)
{
var
authToken
=
config
.
auth
_t
oken
||
'
BackgroundGeoLocation_auth_token
'
,
var
authToken
=
config
.
auth
T
oken
||
'
BackgroundGeoLocation_auth_token
'
,
url
=
config
.
url
||
'
BackgroundGeoLocation_url
'
,
stationaryRadius
=
(
config
.
stationaryRadius
>=
0
)
?
config
.
stationaryRadius
:
50
,
// meters
distanceFilter
=
(
config
.
distanceFilter
>=
0
)
?
config
.
distanceFilter
:
500
,
// meters
...
...
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