Archive Blogs

Recent Posts

blog cover
Android

Improving PhoneGap geolocation for Android

Some Android devices have the problem of not being able to obtain the user’s current geolocation using the following standard code:navigator.geolocation.getCurrentPosition(onSuccess, onError, options);The first possible solution to this problem is to add the following options parameter:options = { enableHighAccuracy: true,timeout: 5000,maximumAge: 0,desiredAccuracy: 0, frequency: 1 };If that doesn’t work, the other possible solution is to stop […]
photo of the creator2