Questions regarding the fee for the public container of CloudKit

I'm having difficulty understanding the true cost of using the public container of CloudKit. I understand that the private container's limit counts towards the personal iCloud storage and the public container towards the separate limit, but I'm curious about the cost of the public container. Virtually every website I've visited to research this refers the Apple's calculator. This is the few information I was able to scrape. Basically, the public container is free to use up until a certain limit and then you get charged for anything extra. The limit is as follows:

  1. Asset Storage: 250 MB
  2. Database Storage: 2.5 MB
  3. Data Transfer: 50 MB
  4. Requests Per Second: 10 per 100k users

Overage Fees

  1. Asset storage$0.03/GB
  2. Database storage$3.00/GB
  3. Data transfer$0.10/GB
  4. Requests per sec$100 per 10 requests

This is what Apple's website says about these numbers:

Limits are calculated and based on an average usage across the total number of active users per month. Users must have active container usage within the last 16 months. If your account exceeds its free limits of public storage, data transfer, or requests per second, overage charges may apply. Your app will not get additional free allowances by using multiple containers

I have a few questions and any help would be appreciated:

  1. Is the 50 MB transfer limit per month or per transfer?
  2. I'm not sure if I'm understanding the 2.5 MB of the database storage limit correctly because that's pretty minuscule.
  3. Does the user bear the cost or the developer?
  4. If former, what happens when the limit is reached? Does the iOS or iPadOS inform the user or does the app have to notify the user like the In App Purchase? Does the app have to inform the user before using the app that there is a limit?
  5. If latter, is there a way to set up an In-app purchasing option and have the public container access as a premium feature?

These forums are for Swift language related things and this is an Apple Framework question. This is off-topic for these forums and probably best asked on Appleā€™s Developer Forums or maybe on Reddit (r/iOSDevelopment seems like a reasonable place to start).

Terms of Service

Privacy Policy

Cookie Policy