The Parse Android SDK and iOS/OS X SDK provide a local datastore which can be used to store and retrieve Parse objects, even when the network is unavailable.
Questions tagged [local-datastore]
97 questions
12
votes
1 answer
Pointers data not storing in local database parse ios
I have a query with many includeKeys which are pointers to another class. After receiving the data from parse cloud all the records are getting stored locally using pinAll method. When I fetch back the results stored, I can able to get the records…

san
- 295
- 2
- 18
10
votes
2 answers
Save eventually on PFObject with PFFile (Parse Local Datastore)?
Goal
I am trying to save a PFObject that has a PFFile as an attribute. I am using the new Local Datastore for iOS, so I would like to save this PFObject with the saveEventually() method.
The Problem
The problem I am encountering is that the…

dcgoss
- 2,147
- 3
- 20
- 31
9
votes
3 answers
Android: How to synchronize queries with Bolts from Parse.com?
I am using Parse.com as a backend for my app. They also offer a local database to store information, as an alternative to SQLite.
I want to add numbers from phone to my database with parse. Before adding a number I need to check if the number…

Chris
- 6,105
- 6
- 38
- 55
8
votes
1 answer
Parse.enableLocalDatastore() - Warning: A long-running operation is being executed on the main thread
Also i have executed the Parse.enableLocalDatastore() in dispatch_async - i'm still have the warning.
Even when i add a symbolic breakpoint on warnParseOperationOnMainThread it dosen't break
here is the code Snippet from the app delegate
func…

gfekri
- 818
- 8
- 9
7
votes
4 answers
"error: This object is not available in the offline cache" occurs only some times with Parse backend
i currently added parse backend to my ios project and defined it to work with its local data storage.
it all seems to work fine except of sometimes i receive "This object is not available in the offline cache" all tough as far as i understood there…

Max
- 799
- 1
- 5
- 17
5
votes
4 answers
Parse saveEventually saves empty object
When I'm trying to save a PFObject without network connection it is successfully saved locally, whenever I start the app again with network connection, it seems that the object is going to be saved to the server, but all parameters are empty.
I'm…

gpichler
- 2,181
- 2
- 27
- 52
4
votes
1 answer
Parse local datastore doesn't work - Swift 2
I am currently using the latest version of Parse 1.14.2 and Bolts 1.8.4.Parse is implemented correctly and I have been using it for a long time now. The problem I'm facing now is when I try to use Parse's local datastore. I have the following code…

bbkrz
- 423
- 1
- 8
- 16
4
votes
1 answer
Parse LocalDataStore does not work when using Parse-Server - 'Method requires Pinning enabled.'
I have recently started using Parse-Server and have migrated my Parse App, now when I try to use Parse Local DataStore I receive the following error:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Method…

Shayno
- 788
- 9
- 26
4
votes
1 answer
Parse.com iOS SDK crash: PFSQLiteDatabase.m line 178 -[PFSQLiteDatabase _executeQueryAsync:withArgumentsInArray:cachingEnabled:]
I have an application in production that uses Parse.com iOS SDK with local datastore ([PFObject pin]).
Some of our users are getting this crash in production, as we see by the Crashlytics report for the crashing thread:
Thread : Crashed:…

Eneko Alonso
- 18,884
- 9
- 62
- 84
4
votes
1 answer
Error: "include is invalid for non-ParseObjects" (using parse-osx-library-1.7.5)
I have a Meal object that stores pointers to n created objects "FoodInfo" using the key "MealItems".
When I query for the meal I take advantage of the [query includeKey:@"MealItems"] to fetch the items pointed to while fetching the "Meal".
This…

Gerald
- 41
- 2
4
votes
1 answer
How do I store ParseObject in both Local Datastore and Parse Cloud on Objective-C iOs 8?
I'd like to save all my objects both locally and in cloud and read from Local Datastore only. All my objects should be saved in both local and online store and local datastore should be synced to Parse Cloud.
I want my App to work Offline so as to…

Kingofmit
- 2,066
- 1
- 17
- 22
4
votes
1 answer
Parse Local Datastore: Unpin objects seems broken in Swift
I want to unpin a list of objects, which I had successfully locally stored earlier, and replace it with a new one. The code below should do that trick, but the locally pinned objects simply don't get updated. I tried everything including…

Christof
- 61
- 1
4
votes
2 answers
iOS-Parse.com Syncing multiple devices with local datastore
I am trying to use local-datastore with iOS.
Say I have two or more devices.
I use saveEventually to save data locally (and on cloud). When working only on one device it works fine.
When I start working with more than one device, to sync I…

Irfan
- 432
- 1
- 6
- 17
3
votes
0 answers
UI freeze while using [PFObject pinAllInBackground] in iOS
we have an issue when we are using [PFObject pinAllInBackground:]
in the Parse iOS SDK.
We discover that when we use [PFObject pinAllInBackground], the UI will freeze sometimes. For example, we have get a list of Post objects using PFQuery, while…

Martin Lai
- 165
- 2
- 8
3
votes
3 answers
Parse storing local datastore objects to cache and clearing them?
I'm storing objects to the Parse local datastore in the standard manner:
[someObject pinInBackgroundWithName:someName];
Generally, this works fine. However, sometimes when I do a local query, i.e.
PFQuery *query = [SomeObject query];
[query…

Smikey
- 8,106
- 3
- 46
- 74