AGSJSONRequestOperation for android

438
1
Jump to solution
04-09-2020 02:29 AM
HristijanPetrovski
New Contributor

We've been developing an app both for Android and iOS.

In this testing phase, my colleague is using AGSJSONRequestOperation to load JSON data from the Rest service however Working with JSON—ArcGIS Runtime SDK for iOS | ArcGIS for Developers 

isn't available for Android?

What's a suitable replacement?

Whenever I'm using a Retrofit2 call it constantly asks for a token

{
"error": {
"code": 499,
"message": "Token Required",
"details": []
}
}

0 Kudos
1 Solution

Accepted Solutions
AlanLucas
Esri Contributor

Hi Hristijan,

You could use the sendRequestAsync and/or postRequestAsync methods in the Portal class - Portal (ArcGIS Runtime SDK for Android 100.7.0)

Alan

View solution in original post

0 Kudos
1 Reply
AlanLucas
Esri Contributor

Hi Hristijan,

You could use the sendRequestAsync and/or postRequestAsync methods in the Portal class - Portal (ArcGIS Runtime SDK for Android 100.7.0)

Alan

0 Kudos