Hi All,
I am looking for the easiest way to access premium services from ArcGIS Online in my app without prompting user to login.
I found good article about authentication Authentication with ArcGIS Android 100.0.0 Part 2 | ArcGIS Blog, so I tried to implement AppLogin (Implementing App Login | ArcGIS for Developers ), but no success. I do not find any option to pass client_id and client secret to OAuthManger, so I can be autohorized to use premium content. Next, I thought, I can use hosted proxy on ArcGIS Online, but did not find any example how to use it with Runtime 100.
Any help is welcome,
Kind regards,
Adam
No solution found so far. I decided to use UserCredential| arcgis-android.
Hi Adam - I believe App Login can only work with content that is public in AGOL.
You can certainly embed credentials in a UserCredential object and use that to connect, however doing so probably runs afoul of ESRI's named-user requirements for AGOL. If you were hosting data on an on-premise ArcGIS Server use of a "service account" to access content would be OK.