Really exciting news about the new subscription sharing between apps feature.
I had already set this up using RevenueCat and some custom server and client side code to enable users to access their subscriptions across multiple apps.
Now that our apps have been auto migrated to projects, I’d like to have them all exist as one project with several apps. Is there a process to do this? In my specific case, I have 2x iOS and 1x macOS app, each with their own subscriptions at identical prices with my custom logic unlocking the entitlements across the apps when users sign in. It would be much easier to have RevenueCat handle this.
Thanks in advance!
Best answer by codyView original
We don’t have an automated process for this, but you should be able to follow the same steps for transferring apps between accounts and doing a client side migration here:
Basically, you’ll need to create new apps in your main project for your other apps. You’ll then want to configure the new apps to be the same as the projects you’re migrating from (don’t forget bundle ID, shared secret, entitlements/products, etc).
From the SDK, you’ll want to call
syncPurchaseson launch for apps launching the new version (with the new API key) so their receipt can be synced with the new app. You shouldn’t call this on launch every time, so make sure you are checking if the user actually exists in the new app first (on iOS, checking PurchaserInfo for
originalApplicationVersionis a good way to see if a receipt has been synced).
Let me know if that helps!
Thanks! To clarify, should I check that any value exists for originalApplicationVersion to verify that the user exists? Or should I validate that the version is (or isn’t) later than this particular update?
I’d recommend just checking if the value exists- if no value exists when you fetch
PurchaserInfo, then you can assume they’ve never had their receipt synced with this new app.
syncPurchasesis silent, and will return the new
PurchaserInfoafter syncing their transactions.
Does that make sense?
Yes that makes perfect sense thank you!