Hello I’m new to RevenueCat, i like all the cool features there but i have a few questions.
I’m testing iOS version recently, I use storekit to simulate purchase, everything works fine, the transaction history does show in the sandbox data in the RevenueCat dashboard. I’m using anonymous app user id.
If I reinstall the app on the same device, a new anonymous user id is generated when the app is launched. A new anonymous will be generated also if I debug it on another device. I know this is reasonable, since there is no authentication flow here. I read the document that, if using anonymous app user id, RevenueCat can analyze the receipt and link the apple user with the anonymous id, so when the user logins with the same apple account on another device, or if he or she reinstalls the app, the purchase can be restored.
However, I test the “anonymous user id” flow on two different devices, with the same apple account logged in, the purchase record is not retrieved (for example, the “allPurchasedProductIdentifier” returned from the customer info api is empty).
Here are some questions I’d like to ask:
1. Is this because I’m using storekit, and three is no receipt approved from apple and so the account cannot be mapped?
2. I cannot find the “sandbox account” setting on two of newer iPads (with iPad OS 17), and I can see the app prompted to sign in with sandbox on the iPad running iPad OS 15. But even after signing with sandbox account, the purchase details don’t show the sandbox account identity, just like those purchase history from anonymous user. Is sandbox account usable only when storekit is absent? And does using sandbox account require the products in App Store Connect to be approved by Apple?
Additional note: It’s in very initial stage, the storekit products haven’t synced with App Store Connect yet. Thank you!
Question
Is there way to test restoring purchase on a new device, or after app reinstallation on the same device in development build?
This post has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
