After the .purchasePackage() call returns, you can check the subscription status of the PurchaserInfo object to determine if the customer is “premium” or not and navigate them appropriately. The code to check this is probably similar to what you would do on app launch to navigate free vs. paid customers to the appropriate screen and may be something like:
if (purchaserInfo.entitlements.all["my_entitlement_identifier"].isActive) {
// Unlock that great "pro" content
}
After the .purchasePackage() call returns, you can check the subscription status of the PurchaserInfo object to determine if the customer is “premium” or not and navigate them appropriately. The code to check this is probably similar to what you would do on app launch to navigate free vs. paid customers to the appropriate screen and may be something like:
if (purchaserInfo.entitlements.all["my_entitlement_identifier"].isActive) {
// Unlock that great "pro" content
}
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.