86
Views
3
Comments
[Location Plugin] Plugin keeps prompting for access when Location is turned off
Question
location-plugin
Mobile icon
Forge asset by OutSystems
Application Type
Mobile

Hi,

We have created an app where our users can register information about a certain location. This location can be determined automatically (via this component) or manually via a map. The location is retrieved every 2.5 seconds until successful or set manually. It will fail sometimes when they are either in a building or other similar situations so an interval to retrieve this information is required.

When the user has either chosen to decline access for the location plugin or when the Location feature of the mobile is turned off the user gets a notification from the device (or plugin?) that access should be provided. This happens at every request interval (2.5 sec) and is very annoying for the user. 

The plugin doesn't provide support (as far as I know of) to either check if access has been provided (or declined on purpose) nor can I configure if I want to show a popup to the user. Can these capabilities be added?

Things that I would like to be added are;

- Check if access if available.
- Request access.
- Configure whether or not the user should be presented with a "give access" popup.

Greetings,

Vincent

2021-01-04 08-13-48
Toto
 
MVP

Hi,

For checking permission, you can use another plugin : https://www.outsystems.com/forge/component-overview/2040/android-permissions-plugin

In this plugin, there is function if the feature has permission 

So I think you can combine on your logic, if the app has permission for location, then you try to get location, else ignore get location

2025-03-19 07-39-30
Rifaz

This plugin name suggests that it is for Android (AndroidPermissionsPlugin).

Does it works in IOS?

I need to detect, If the location is denied.

2021-01-04 08-13-48
Toto
 
MVP

Hi Rifaz,

Yes, AndroidPermissionPlugin is only for android. For IOS, you can use EditPListPlugin (https://www.outsystems.com/forge/component-overview/3079/edit-plist-file-plugin-o11).

But do take note, the usage is very different between AndroidPermissionPlugin and EditPListPlugin. Refer to the guide in the plugin for this.

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