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
e60050c6
Commit
e60050c6
authored
Nov 28, 2014
by
Chris Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ajax request
parent
82b41928
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
index.js
example/SampleApp/www/js/index.js
+1
-14
No files found.
example/SampleApp/www/js/index.js
View file @
e60050c6
...
...
@@ -111,20 +111,7 @@ var app = {
// Update our current-position marker.
app
.
setCurrentLocation
(
location
);
$
.
ajax
({
type
:
"
POST
"
,
url
:
"
http://l-track.azurewebsites.net/track
"
,
data
:
JSON
.
stringify
({
"
location
"
:
location
}),
contentType
:
"
application/json; charset=utf-8
"
,
dataType
:
"
json
"
,
success
:
function
(
data
){
console
.
log
(
'
successfully logged location
'
);
},
error
:
function
(
err
)
{
console
.
log
(
'
error logging location
'
);
}
});
// After you Ajax callback is complete, you MUST signal to the native code, which is running a background-thread, that you're done and it can gracefully kill that thread.
yourAjaxCallback
.
call
(
this
);
};
...
...
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