‎2021 Jul 15 12:59 PM
Hi,
I just completed the Offline OData Tutorial for Android. According to the docs an optimistic locking approach based on ETags is implemented in the offline api.
I would like to test this and therefore I installed the sample app on two devices. After initial sync, I modified the same SalesOrderItem on both devices. Then I synchronized changes on the first device.
When trying to sync on the second device, I expected a conflict due to a stale ETag, but the sync completed successfully and changes from the first device were overriden.
Am I doing something wrong?
‎2021 Jul 15 2:45 PM
When querying the sample odata service, I cannot see any @odata.etag properties in the response. Therefore I think there is just no support for etags in the sample-odata-v2-espm service.
Is it possible to use another odata service supporting etags with an trial account?