2

I've released the app with push notifications based on insert in CloudKit public database. Everything was fine during TestFlight tests – devices received notifications (inluding my own).

After App Store release I've noticed that none of the devices that my friends and I own receive notifications. The app was already updated on more than 140K devices.

When I debug the app with the entitlement key com.apple.developer.icloud-container-environment set to "Production" I receive notification only when I insert the key in... Development Environment.

My app uses silent push notification to fetch record from the database, but it looks for it in the Production Environment ;)

EDIT: Meanwhile, I've released an update to the app and now the app doesn't fetch anything from the database because all required fields from the entity are attached to the notification. I thought that, maybe public database request limits are exceeded.

Anyway I've checked the Telemetry section in the CloudKit Dashboard and it looks like it can sends max 500 notifications per some magical period of time:

screenshot from CloudKit Dashboard

Last 24h with many inserts in the database:

enter image description here

Some inserts didn't trigger push at all.

Of course none of the devices I have in my home received the notification. Any ideas why this happens? Are there any non-documented limits of CloudKit Push Notifications?

Adam Różyński
  • 451
  • 3
  • 10
  • Hmm... that's strange (and a bit alarming). Does the CloudKit error log show anything about failed push notifications? – Clifton Labrum Dec 11 '18 at 19:41
  • Nope. :/ It sends notifications, usually below 500 (mostly below 100) and it stops, displaying other requests – Adam Różyński Dec 12 '18 at 07:55
  • @CliftonLabrum Meanwhile, I've released an update to the app and it doesn't fetch anything from the database, all required fields from the entity are attached to notification. I thought, that maybe public database request limits are exceeded. It didn't helped. – Adam Różyński Dec 12 '18 at 09:35
  • Were you able to solve this problem? I am limited to 50-100 pushes for different CKQuerySubscription's. I can see my position in the queue of pushes change with time. And when I get to the bottom I no longer get the push. Any idea what causes this? – Peter B. Kramer May 03 '19 at 16:35
  • nope :( I gave up – Adam Różyński May 04 '19 at 17:05

0 Answers0