4
votes

I do have a background as a native iOS software developer. We had a couple of apps for iPhones and iPads that used CloudKit to sync data between the same App installed on different devices of a single user.

It was used for simple things like favorited items within apps that did not have any login or account mechanisms.

How would I achieve such a functionality in flutter? Havent found any iCloud related plugins for dart/flutter.

Thank you!

1
Hey @Robin did you find a way to access CloudKit in flutter? There was this github.com/jaumecornado/DroidNubeKit for native Android which was not maintained and wonder if there's anything more up to date - hyouuu

1 Answers

0
votes

I do not believe there is a direct way to access the CloudKit from dart/flutter, however, there is nothing stopping you from trying this architecture.

Build a (PHP?)/CloudJS application on a webserver to serve REST-ful API calls that send/retrieve data from CloudKit Containers (CloudKit Web Service Reference). You'll want to set up some server-to-server authentication for this to work.

Posting/Fetching data via the REST API calls from dart/flutter. There are many libs that facilitate this and author (BRIJESH) over on androidkt.com offers an interesting walkthrough of some options.