Geolocation Does Not Stay Enabled

Hello,

I am developing a geolocation app. I seem to be having a similar problem that others have experienced wherein, I can't get latitude and longitude data from the geolocation system. I've tried many of the suggestions in other threads. Nothing works. My problem seems to be a bit different insofar as I can see that geolocation will not stay enabled when running in a browser. I placed a button on the app that will turn geolocation on and off, and a corresponding status indicator. In the designer, I can toggle geolocation and off. In a browser, geolocation enables momentarily, and then is being shut off by something else. It does not stay enabled long enough to report the current position back to Perspective. Those values remain null. I've tried this with a Samsung phone, an iPhone, and Android tablet, and an iPad. All behave the same way. None of them display a dialog box asking to allow the app to use location services.

What am I missing?

Eric

Have you checked in the device's app permissions dialogs? If ever prompted and denied, you probably won't get following prompts.

Settings => Apps => Ignition Perspective => Permissions:

Edit: Wait! You say in a browser. The Ignition docs only talk about geolocation in the mobile apps. I don't recall seeing anything that says it is supported in browsers. :man_shrugging:

2 Likes

Hi Phil,

You nailed it. I didn't catch the fact that geolocation does not work in the browser. It only works in the native Perspective app. After installing the app and enabling location services as you show in the screen shot, it works as expected.

Thanks for the help.

Eric

2 Likes

I'm trying to enable this on an iPad. I enabled Location Services on the iPad but the app permissions for Ignition Perspective does not list Location as in your screenshot. It only has Phots, Local Network, Camera, and Siri&Search. Any suggestions or does this not work for iPads.
Edit
Never mind, I restarted the app and it asked for permission on startup.