I am using Location plugin in mobile app. when calling GetLocation client action, it successfully retrieves the Latitude and longitude in ios but timeout in Andriod. Given that location service is enabled on the phone and app was given the permission to get location. Tested on Android version 13 (Galaxy S23). What can I do in this case?
I managed to solve the issue by reading this post
https://www.outsystems.com/forums/discussion/69606/location-plugin-for-android-it-takes-30-to-60-seconds-to-get-location-informat/
Any reason why plugin did not get updated to the new cordova-plugin-geolocation 4.1.0?
Hi,
I don't think there seem to be issue related to plugin. But below items can be checked:
Hope this helps.
Thanks @Puja Rani for your suggestions. In fact I did all what you suggested but it did not solve the issue. Even I tried it in multiple Android phones, same result.
What is interesting is the behaviour is not consistent. Sometimes it picks the location and many time does not which cause the app not function properly.
when trying on IOS iPhone it always work and fast. I am using Mabs 9.0 with Service Studio 11.54.18 on MAC.
I hope someone came across same situation and figured out what is the solution.
As you mentioned you get timeout, have you entered any specific values to these parameters?
Hi @Puja Rani
Thanks.
I kept the values empty to take the default setting (5000 milliseconds for the timeout).
Then i even changed them to a higher value (timeout = 20,000 milliseconds) and still timeout.
Hi @Mohammad Ibrahim please restart trhe service studio
Hello,
Please refer to this link-
Hope this will be helpful.
Thanks