Differences in Arcgis Runtime SDK for iOS and calling REST directly

1201
11
Jump to solution
03-29-2023 05:24 AM
frankm
by
New Contributor III

I am trying to refactor an app here that has some problems with going offline using defaultGenerateGeodatabaseParameters, and I was asked by the our Python team to alter the request somewhat.

I managed to change it to match except for one thing, replicaOptions, which I need to remove.

'replicaOptions': '{ "syncDataOptions": 5 }'
 
I find replicaOptions mentioned in the docs for the REST Api:
https://developers.arcgis.com/rest/services-reference/enterprise/create-replica.htm
 
However, no mention of it in https://developers.arcgis.com/ios/api-reference/

Does anyone know how I can turn it off - is is possible without calling REST directly?
0 Kudos
11 Replies
MarkDostal
Esri Contributor

Hello! Sorry for the delayed response, but we're getting ready to release the v200.1 version of the SDK today and this week has been pretty hectic.  I've asked our offline team about the issue you're having and am just waiting for a response.  As soon as I hear, I'll let you know.

Mark

MarkDostal
Esri Contributor

I receive the following response from our offline team:

One thing to check is that access controls does affect what replicas you see. You can only see your own replicas, so whatever user account was used in runtime to create a replica, you need to use the same account to view the replicas in rest calls. I recall the role matters too, so I think "admin" has extra powers and see all replicas for an AGOL service?

Let me know if that helps or not.

Mark

0 Kudos