29
Views
3
Comments
Solved
[Location Plugin] GetLocation not working while offline
location-plugin
Mobile icon
Forge asset by OutSystems
Application Type
Mobile

Hello,


GetLocation is not working while offline.

It gives me this error: OS-PLUG-GLOC-0016 - Location settings error.


MABS V11.1

It was tested on an Android v12 phone. 

GPS was turned on.


Can someone tell me what might be the solution for this?


Thanks in advance.


2025-01-10 11-40-52
Pedro Gustavo Bilro
Solution

Hey everyone, please try using the latest version - 6.1.0 - For retrieving location while offline on Android. Release notes:

Features

  • Android
    • GetLocation and WatchPosition - Allow to retrieve location when device has no network or no Play Services. This option can be disabled - see EnableLocationFallback input parameter for more information.


2021-04-09 11-42-43
assif_tiger
 
MVP

Hi, 
You might be using HighAccuracy as true for Location Action;

Try using :
- Set EnableHighAccuracy as False while populating location


Confirm below:
1- Permissions

"permissions": [ "android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_BACKGROUND_LOCATION" ]

2- make sure you're usign latest version of component


Good Luck




2025-01-10 11-40-52
Pedro Gustavo Bilro
Solution

Hey everyone, please try using the latest version - 6.1.0 - For retrieving location while offline on Android. Release notes:

Features

  • Android
    • GetLocation and WatchPosition - Allow to retrieve location when device has no network or no Play Services. This option can be disabled - see EnableLocationFallback input parameter for more information.


2025-10-07 10-33-30
Gonçalo Silva

Hello,

With the newer version it is working in Airplane mode as well.

Thanks,

Gonçalo Silva

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