function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
HGBHGB 

Native Android synchronising offline content to SFDC: Handle to the offline queue

Hi,

 

The Developing Offline Apps with Salesforce Mobile Services document (http://wiki.developerforce.com/page/Developing_Offline_Apps_with_SmartStore) states that an offline queue of newly upserted (created) objects are added to a queue and that this queue is then used to synchronise th newly added object with SFDC.

 

I read in posts here that the synchronisation doesn't occur - one has to implement it oneself. Does the queue also have to be implemented or is there a handle to it? I cannot seem to find one in SmartStore.

 

Many thanks,

 

Hugh

 

Ashish_SFDCAshish_SFDC
Hi Hugh, 


This document has been updated and few relative changes have been made. 

I could not find any major issue with the Syncing and has not been reported as a major issue. \

There have been smoe cache issues observed which get resolved by uninstalliing and re installing the App. 

OfflineQueue.js

This class handles the queue functions that are written to any time a record is saved using OfflineQueue.StoreRecords. The OfflineQueue.UploadQueue method takes care of emptying the queue and upserting the records to SFDC. Delete methods are left as an exercise for the reader.

http://wiki.developerforce.com/page/Developing_Offline_Apps_with_SmartStore

Refer to the Doc and let us know if that does not answer your question or if you are looiking at something else. 


Regards,
Ashish