Skip to Content
0
Former Member
Jun 25, 2013 at 06:57 PM

Delete operation in Offline mode

23 Views

Hi All,

I am facing a strange problem in offline mode of app in iOS.

Scenario :

1) User successfully logs-in under network connectivity & registers with SUP.

2) Device is made to loose the network, perform Create operation on n-records. The so created records are updated on to the UI.

3) Simultaneously the perform Delete operation on x-records in offline. (observations : i see pendingChange = C on record log after performing submitPending). I remove the record entry in UI.

4) On the next successive network connectivity i perform a Automatic Sync to the SUP (identify the network reachability and perform Synchronize on a particular Sync Group). I assume that the records with submit pending set flags are sent to sup and get identified as Created & Deleted in offline mode.

Issue :

The deleted record in offline mode is received back from SUP on the online Sync.

I checked lot forums by now and didn't get any clue about how to handle the delete operation in offline mode. Can anyone help me out in this.