This question is locked. New answers and comments are not allowed.
Hi Team,
I am working with icenium mobile app for Android and as per my requirement I need to run code to get accurate location from device. So I have used below code.
Below are the permission we have applied.
But when I am setting true enableHighAccuracy: true application not working and always give error about location not found, even I have run the sample application from telerik that is also not working. I have set all permission but still that is not working.
If I am setting enableHighAccuracy: false thing is working but in this case location is not accurate, also in case of false if I am using wifi then location are almost accurate.
So can you please suggest what setting required for enableHighAccuracy: true.
Thanks,
Amit Patel
I am working with icenium mobile app for Android and as per my requirement I need to run code to get accurate location from device. So I have used below code.
navigator.geolocation.watchPosition(onSuccess, onError, { maximumAge: 3000, timeout: 5000, enableHighAccuracy:
true
});
Below are the permission we have applied.
<
uses-permission
android:name
=
"android.permission.INTERNET"
/>
<
uses-permission
android:name
=
"android.permission.ACCESS_COARSE_LOCATION"
/>
<
uses-permission
android:name
=
"android.permission.ACCESS_FINE_LOCATION"
/>
<
uses-permission
android:name
=
"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"
/>
<
uses-permission
android:name
=
"android.permission.WAKE_LOCK"
/>
But when I am setting true enableHighAccuracy: true application not working and always give error about location not found, even I have run the sample application from telerik that is also not working. I have set all permission but still that is not working.
If I am setting enableHighAccuracy: false thing is working but in this case location is not accurate, also in case of false if I am using wifi then location are almost accurate.
So can you please suggest what setting required for enableHighAccuracy: true.
Thanks,
Amit Patel