CloudKit Subscriptions - weird things going on

Hi all,

Would not believe this if not seeing it for 2 days (and nights) now.

Our game uses CloudKit subscriptions to avoid two devices entering the game with the same account. That worked perfectly well for 8 months, since 4 months we did not have any update on the game, so nothing changed.

Now since Wednesday user have not been able to enter the game cause the subscription was not found.

We tested on device, not working. We checked on CloudKit console, everything fine. Testing again on device, works. Great! Until 3–5 minutes later, when it stopped working again. Going back to CloudKit console, everything fine. Device, fine. Until 5 min later…

So, the weird situation we got now is that everything works perfectly, as long as we query the subscriptions in CloudKit console every few seconds. If we stop, our game is down until we do that again. So we do nothing else as reload the link that does a simple query to keep it up. Sitting here and can't sleep because I'm feared my browser session expires and the game goes down...

Has anybody ever experienced something like that? We have not been able to find reports of similar issues

I've recently been having issues with creating CKQuerySubscriptions as well since Tuesday of last week. They are BAD_REQUEST errors saying that a subscription can not be created in the production container. I have not updated my subscription logic in months and this issue is preventing my users from receiving notifications about records.

It looks like it could be related to the patch Apple rolled out last week in relation to using NSPredicate: https://www.trellix.com/en-us/about/newsroom/stories/research/trellix-advanced-research-center-discovers-a-new-privilege-escalation-bug-class-on-macos-and-ios.html

The subscriptions I use that do NSPredicate(value: true) do not have an issue being saved to the database.

Thanks for the posts here. I've been scratching my head for the past week with the same thing on a project that had been working without issue for month but now also experiencing what's outlined above:

  • CKQuerySubscriptions fail to create with an error: "Invalid Arguments", server message = "attempting to create a subscription in a production container"
  • fetchAllSubscriptions comes back empty even if user previously had subscriptions
  • Manually altering a record of same type as subscription in the container dashboard temporarily restores ability to create and view subscriptions (~5 minute window mentioned above).
  • After that period, though it just stops working again

Have a ticket open with Apple but still waiting for a reply...

FYI for those having this issue, I just got a reply to my TSI and was told this is a known issue that Apple is actively working on resolving. Hoping for a quick resolution!

1 week and 2 days. Every time we stop reloading the dashboard our public subscriptions disappear and our users are not able to fetch them. This is RIDICULOUS.

This issue seems to have cleared up earlier today around 2pm EST.

CloudKit Subscriptions - weird things going on
 
 
Q