Portal Token

437
1
06-27-2019 11:59 AM
by Anonymous User
Not applicable

I am new to Android development, and recently started working with ArcGIS Android SDK's, along with my fellow android developer. I do have some experience working with iOS SDK. I am working on an test application for both Android and iOS platform. Having some issue with Android sdk at this point

Is there a way to get the access token from oAuth Portal Sign In. 

Like in iOS SDK , we could get the portal token from portal.credentials?.token , after successful signin.

0 Kudos
1 Reply
PuneetPrakash
Esri Contributor

Yeah, the api is similar. You can call getCredential() on Portal object 

Portal (ArcGIS Runtime SDK for Android 100.5.0) 

which would give you an OAuthTokenCredential object and you can call getAccessToken() on it.

OAuthTokenCredential (ArcGIS Runtime SDK for Android 100.5.0) 

0 Kudos