Closed Neoespecialistas closed 9 years ago
You should try to register the geoposition:error
event before initializing ffwdme
.
function init(){
ffwdme.on('geoposition:error', function() {
alert('Please, put GPS active');
});
ffwdme.initialize({});
});
Compare: https://github.com/ffwdme/ffwdme.js/blob/master/static/demo/app.js#L3-L18
Thanks a bunch ! David
Hi,
I'm trying to check if GPS is enable. I tryed this code:
function init(){ ffwdme.initialize({}); });
ffwdme.on('geoposition:error', function() { alert('Please, put GPS active'); });
etc...
But never alert me that GPS is disabled.
What is wrong ?
Thanks in advance, David