After searching SO and reading
Parse SDK pinInBackground callback does not return
Android Parse.com pinAllInBackground large data very slow on device and crash on genymotion
I am using Parse.com to retrieve data from remote then pin list of objects to the local datastore.
I already initialized parse to enable local data store using Parse.enableLocalDatastore(this);
Methods I tried:
parseObject.pin()
parseObject.pin(String string)
parseObject.pinInBackground(SaveCallback saveCallback)
ParseObject.pinAll(list<parseObjects> parseObjects)
ParseObject.pinAll(String string, list<parseObjects> parseObjects)
Those methods sometomes works perfectly and sometimes if a synchronous pin method the UI thread hangs forever, and when using an asynchronous pin method which works in background, the callback method provided in the parameters sometimes never called. Is there any circumstances leads to that the pin method doesn't work?