For IOS, the location information came back immediately, but for Android, it takes 30 to 60 seconds. Anybody can tell me why and how to solve it.
Hi Vivek
thanks for your comment.
I change the plugin's url to [https://github.com/apache/cordova-plugin-geolocation.git#4.1.0] . and solved my problem.
[Location plugin] using [version 4.0.1], maybe can not support newest android API.
https://github.com/apache/cordova-plugin-geolocation/commit/a9c65b03b17e33bd1b4db1931b020c754f6357be
Hi Liu ,
If Android device takes 30 to 60 seconds to get Location , there can be following reasons :
1) You are inside a hall with closed walls .
2) Your device location setting might be set to WIFI only or Device only .
In android sometimes it takes time to get location ,but please check settings properly .
If your Location setting is set to HIGH Location , then it will return location within 10 seconds .
Ragards,
Vivek P.