-
-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate receipt on app startup on V13 #1509
Comments
I am also having this problem, can anyone help this has brought my app to a standstill. All worked perfectly before upgrading. Please help? |
I have made some progress with the following: CdvPurchase.store.when() refreshing the UI in the .verified event seems to do the trick |
I think this is related to #1363 - I have the same problem (after reopening the app on iOS, the subscription is not found anymore). |
You need to tell the plugin that you need the application receipt. store.initialize([
{
platform: Platform.APPLE_APPSTORE,
options: {
needAppReceipt: true,
}
}
]) |
I am starting the plugin this way, but store.when().verified is not getting called. I added console.log in there which never shows, and when I call findInVerifiedReceipts, it doesn't find the product. I see it calls approved for the transaction for the app itself (transaction with id appstore.application) but for no other I also updated to the latest version of the plugin, but the issue persists. I have been checking for hours and don't find the cause. Thanks for any help. |
Any luck with this? |
If you are running a custom validator, make sure its response complies with the one expected by the plugin (cf API documentation) |
Thank you for your time! I am not using a validator. I created a new issue here (with code): #1606 |
The app I am working on uses auto renewable subscriptions.
On version 11, when I called store.refresh() at initialization, the iOS receipt got automatically validated.
I want to have the same behavior with version 13, but that is not happenning when I call store.initialize(). How can I have the app get the iOS receipt and validate it on startup, after initialize ?
Please help, thanks!
The text was updated successfully, but these errors were encountered: