activate gps even when mobile is locked
By joachim Rodrigues
20 Jan 2016 13:09
English
3 Replies
Hi
I have this code running well on a samsung z3:
navigator.geolocation.getCurrentPosition(function(position) {
var lat, lon;
lat = position.coords.latitude;
lon = position.coords.longitude;
updateCoordinateDisplay(lat, lon);
map.setCenter(new google.maps.LatLng(lat, lon));
}, function() {
alert("Sorry, we're unable to detect your location");
});
but as soon as the screen is locked the process stopped
how can activate gps even when mobile is locked ?
Thanks
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
All Categories
General Support
Tizen .NET
Web Application Development
Native Application Development
SDK & IDE
--------
--------