cancel
Showing results for 
Search instead for 
Did you mean: 

iOS native app - Offline OData DataFormat

noble42
Discoverer
0 Kudos
114

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.

 

Accepted Solutions (0)

Answers (0)