Android : Parse android local datastore pinallInBackground error

on Thursday, March 26, 2015


In my android application upon sign up there are approximately 3.5*(how many android contacts you have) parse objects created. I want these parse objects to be saved to parse, but also pinned to local data store for offline use. I have the local datastore already fully functional in different parts of the app (after pull query of said objects) but the function used in the above context doesnt work. This is my current code:



ParseObject.pinAllInBackground(dumbObjectsToPin,new SaveCallback() {
@Override
public void done(ParseException e) {
if (e == null){
Log.v("", "PINNED WITH NO ERRORS");
} else {
Log.v("", "PINNED WITH ERRORS: "+e.getMessage());
}
}
});
ParseObject.saveAllInBackground(dumbObjectsToPin, new SaveCallback() {
@Override
public void done(ParseException e) {
if(e == null) {
Log.v("", "SAVED WITH NO ERRORS");

} else {
Log.v("", "SAVED WITH ERRORS: "+e.getMessage());

}
}
});


I have also treid embedding the pin on the callback from the save function with no luck . The error that it always gives me is:



V/﹕ PINNED WITH ERRORS: bolts.AggregateException: There were 507 exceptions.


Not sure whats this means, Can anyone explain this exception? Or perhaps some rules regarding at what state you can pin parse objects?


Thanks in advance, Mitch


0 comments:

Post a Comment