Question

Subscription p8 key file

  • 27 August 2021
  • 4 replies
  • 54 views

Badge

We’ve got our iOS app working in testflight with subscriptions, and we have not uploaded a “Subscription p8 key file.”  (We have added the App-Specific Shared Secret.) 

We are able to retrieve the current offer and purchase it.   So, when is the Subscription p8 key file needed?  For what functionality?

p.s. I’ve seen the blog at https://www.revenuecat.com/blog/signing-ios-subscription-offers, but it just says to upload it.  

 

thanks


4 replies

Userlevel 3
Badge +7

Hey @TBZ! 👋

The subscription p8 key file is for non-introductory subscription offers and offer-codes so RevenueCat can securely authenticate and validate a subscription offer request with Apple.  You can read more about this in our iOS Subscription Offers doc: https://docs.revenuecat.com/docs/ios-subscription-offers

Badge

I see the description for redeeming Offer Codes from the app with presentCodeRedemptionSheet().

But, if we have not implemented that in app, and a user redeems via App Store directly, will RevenueCat pick it up (entitlement.isActive)?

i.e. What is required to recognize in appthat a user has redeemed an Offer Code via App Store?

thanks

Badge

I can confirm that you can send out Offer Codes for your app, using URL for redemption, with no extra coding or setup.

e.g. emailing a link for ‘1-month free’ for new user installs

Badge

@cody I can’t find in the docs how I can upload a p8 file for testing using the storekit config file. When I try to pull the SKPaymentDiscount, I get an error that directs me to this url https://docs.revenuecat.com/docs/ios-subscription-offers , but these aren’t for .storekit sandbox testing.

Reply