Authorize app to use ArcGIS Online account

662
3
11-12-2020 01:21 AM
Banksy98
New Contributor

Hi,

I am creating an iOS app that makes use of downloading a web map offline. I keep getting an infinite loop of seeing the following screen (see image attached), where it says 'Digital Trails wants to access your ArcGIS Online information'. When I enter my credentials and try to login, it instead reloads the same page without any error. Any help in regards to what could have caused this would be greatly appreciated.

- Mike

0 Kudos
3 Replies
NimeshJarecha
Esri Regular Contributor

Hi Mike,

I would like to know few things to narrow down the issue.

How many layers are in the map which you are trying to take offline? Is user you are using has access to layers?  All layers belong to the same server? Are you getting the prompts only while taking it offline or just loading a map too?

~Nimesh

0 Kudos
Banksy98
New Contributor

Hi, thank you for the reply.

There is only one layer, so only one server as well. The account does have access to the layer (the account created it), and the error occurs when loading the map (even before taking it offline).

What's interesting is that the exact code that I have works when I put it into a separate iOS app (one I created just for testing this functionality), but when I put that same code into the app me and my team are working on, that is when I got this error.

The app me and my team are working on has a 'Lite' license, while my separate test app had no license, not sure if that would cause anything. I have tried not using the 'Lite' license (commenting it out), but that still produces the same result.

0 Kudos
NimeshJarecha
Esri Regular Contributor

What is the OAuth configuration and is App configured correctly to handle redirect URL? If possible, send me a sample app to reproduce the issue. You can direct message.

~Nimesh

0 Kudos