Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudKit Working? Does Anyone have actually have Subscription, etc. working? #288

Open
johnheb opened this issue Jan 3, 2020 · 3 comments

Comments

@johnheb
Copy link

johnheb commented Jan 3, 2020

I have been trying to get CloudKit Subscriptions working, basically it doesn't do anything after you attempt to send the invitation. I came across this little note in CKSubscriptions Apple doc:

Overview
Note: CKQuerySubscription is not supported in a sharedCloudDatabase.

Can anyone enlighten me and/or describe how to get the subscription workflow working? Or a least confirm that it does work?

Many thanks!

@drewmccormack
Copy link
Owner

You need to make sure you call the register method in your app delegate, as well as have the push notifications, and background fetch capabilities. See the sample app to see how that works.

The subscriptions also don't work in the simulator if I remember properly.

Are you using the CloudKit sharing? If not, the warning you mention should not play any part. For standard sync of one user, you don't need CloudKit sharing.

@johnheb
Copy link
Author

johnheb commented Jan 4, 2020 via email

@drewmccormack
Copy link
Owner

drewmccormack commented Jan 4, 2020

I have a LOT of customers, and do a ton of support each day. I don't recognise every request, and recall all circumstances on every issue posted. Especially when a request is new, and I can't see any history attached to it.

Why would I offer a sync solution for iCloud? Because Apple's own solution was such a disaster, I had to create my own. It was unusable, and is now also completely deprecated. That is why. I would have preferred not to write my own framework, but there was no choice.

Ensembles supports CKShare. I did not say you can't use shared stores. But push notifications may not be supported, due to the Apple restriction. The push notifications are not a requirement, they are just a nice-to-have, so for a shared store, you can just use a timer to sync every few minutes, in addition to other logical times (eg going to background).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants