local-datastore

Pointers data not storing in local database parse ios

孤者浪人 提交于 2019-12-04 01:11:01
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 but not pointers included. See sample code below [query includeKey:@"classOne.innerClass"]; [query includeKey:@"classTwo.innerClass"]; [query includeKey:@"classThree"]; [query includeKey:@"classFour"]; [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error){ [PFObject pinAllInBackground:objects withName:@"LocalRecords" block:^

Parse Local Datastore + Network Sync

孤街浪徒 提交于 2019-12-03 20:37:45
I am using Parse.com with my iOS application (written in Swift) since 6 month and I would like to use Parse local Datastore for many reasons : Make my application usable (retrievable) offline Reduce data usage (many queries returning « non updated data ») Reduce loading time (mainly when starting application and loading all data from network) In order to do so I would like to write a global function handeling these scenarios for all the query I do from my application. I already have a specific idea of what the function should do but I don’t know how to technically write this function :)

Swift Parse - local datastore and displaying objects in a tableview

☆樱花仙子☆ 提交于 2019-12-02 06:35:49
问题 I am building and app that saves an object in the local datastore with parse. I then run a query to retrieve the objects that are in the local datastore and it is working fine. however, I would like to grab the object, and the contents in it, and set some labels in a table view cell based on the items that are stored in the parse local data store object. for example, i make an object with attributes like "objectID", "name", "date", "location". what i'd like to do is to have a table view on

Swift Parse - local datastore and displaying objects in a tableview

与世无争的帅哥 提交于 2019-12-02 03:00:48
I am building and app that saves an object in the local datastore with parse. I then run a query to retrieve the objects that are in the local datastore and it is working fine. however, I would like to grab the object, and the contents in it, and set some labels in a table view cell based on the items that are stored in the parse local data store object. for example, i make an object with attributes like "objectID", "name", "date", "location". what i'd like to do is to have a table view on the home screen that displays the name, date, location ...etc. of each item that was saved in local

Parse. Keep LocalDataStore data sync

倖福魔咒の 提交于 2019-11-30 10:56:25
I'm query the data online first(without "[query fromLocalDatastore];"). And "pin' it for local usage. To save bandwidth, i'm using "UpdatedAt" to get only the new stuff. After, I query using "[query fromLocalDatastore]; it work great to get datas. :) But the question was: How to sync my local datas with data that are deleted from the Parse dashboard? Exemple: Getting new stuff can return zero element, But, maybe they are 10 element deleted online. Edit: The final goal was to have 10000 rows In parse dashboard. And grab only updated or deleted(instead of all stuff) In this case, I would suggest

Parse. Keep LocalDataStore data sync

☆樱花仙子☆ 提交于 2019-11-29 16:32:12
问题 I'm query the data online first(without "[query fromLocalDatastore];"). And "pin' it for local usage. To save bandwidth, i'm using "UpdatedAt" to get only the new stuff. After, I query using "[query fromLocalDatastore]; it work great to get datas. :) But the question was: How to sync my local datas with data that are deleted from the Parse dashboard? Exemple: Getting new stuff can return zero element, But, maybe they are 10 element deleted online. Edit: The final goal was to have 10000 rows

Save eventually on PFObject with PFFile (Parse Local Datastore)?

半城伤御伤魂 提交于 2019-11-28 06:35:42
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 saveEventually() method doesn't seem to like saving the PFFiles . I tried to saveEventually() my object without any PFFile attached, and that worked fine. As soon as my PFFile was reattached, Xcode threw a couple of breakpoint notices (errors?) but did not terminate the app, and it appears as though all went well - however a check on the Parse Data Browser

Save eventually on PFObject with PFFile (Parse Local Datastore)?

巧了我就是萌 提交于 2019-11-27 01:25:04
问题 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 saveEventually() method doesn't seem to like saving the PFFiles . I tried to saveEventually() my object without any PFFile attached, and that worked fine. As soon as my PFFile was reattached, Xcode threw a couple of breakpoint notices (errors?) but did not