Tutorialwork / cloud_kit

Flutter plugin to use CloudKit in your iOS app
https://pub.dev/packages/cloud_kit
GNU General Public License v3.0
16 stars 10 forks source link

Save, Fetch and Fetch All Objects #10

Closed elzahaby closed 2 months ago

elzahaby commented 1 year ago

Save a Json Formatted String as an Object in CloudKit. Takes a recordType. Requires an ID in the JSON String Fetch a Record by ID. Returns a JSON String Fetchall records of a recordType returns a JSON String

hmarat commented 1 year ago

@elzahaby do you have any forks for this features? I would like to use it for now because current cloud_kit is very buggy

Tutorialwork commented 1 year ago

@elzahaby @hmarat The problem is that the way cloud_kit is saving the entries internal is not so optimal. But it's difficult to change it without breaking the current implementation. Regarding this fork I'm not sure if it's good because you can use convert a Object to JSON and save it as string in CloudKit.

elzahaby commented 1 year ago

@Tutorialwork I don't see any problem. Since you can always convert your json in flutter to a string and then store it. I personally think making the bridge through json as the "standard" implementation for this plugin would be way better and more flexible. It would allow you to store any kind of data at whatever you want recordType