a month ago
Hi,
I'm trying to build an Offline first application, that uses deltaTokens to help reduce the amount of data downloaded when syncing, as there may be a lot of data including attachments that need to be downloaded. I have found that the OfflineODataProvider does not use XML as the accepted request and response format, even though I have set the service options to accept XML.
let offline = ODataNotifications(
provider: offlineProvider
)
offline.serviceOptions.dataFormat = DataFormat.atom
This same code works perfectly when using the onlinService, but fails when trying to open the offline store, as the offlineService always sends "application/json" as the accepted format.
What else can I do to force the offlineService to send the request as xml??
Thanks.
Request clarification before answering.
User | Count |
---|---|
66 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.