61
Views
7
Comments
Solved
[Location Plugin] GetLocation works in ios but timeout in Andriod
Question
location-plugin
Mobile icon
Forge asset by OutSystems
Application Type
Mobile
Service Studio Version
11.54.17 (Build 62610)

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?



UserImage.jpg
Mohammad Ibrahim
Solution

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?


UserImage.jpg
Puja Rani

Hi,

I don't think there seem to be issue related to plugin. But below items can be checked:

  1. Network connectivity issue.
  2. Check Service center logs for any details error logs.
  3. After adding the plugin to your app, it generates a new QR code, so I hope you re-installed the app if you already had previously installed in your mobile.

Hope this helps.

UserImage.jpg
Mohammad Ibrahim

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. 

UserImage.jpg
Puja Rani


As you mentioned you get timeout, have you entered any specific values to these parameters? 

UserImage.jpg
Mohammad Ibrahim

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. 



2025-09-01 03-21-07
Vibhor Agarwal

Hi @Mohammad Ibrahim  please restart trhe service studio

UserImage.jpg
Mohammad Ibrahim
Solution

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?


2025-09-01 03-21-07
Vibhor Agarwal

Hello,

Please refer to this link-

https://www.outsystems.com/forums/discussion/69606/location-plugin-for-android-it-takes-30-to-60-seconds-to-get-location-informat/ 

Hope this will be helpful.

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.