Skip to content
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

Will Local receipt validation require AppStore authentication? #8

Closed
ankitkapasi opened this issue May 8, 2017 · 5 comments
Closed

Comments

@ankitkapasi
Copy link

Hi - I'm interested in using your library for local receipt validation before sending it up to my API. I was wondering though. During the receipt validation flow, will the dreaded IAP authentication modals pop up? I have a requirement to not show those to the user.

@odrobnik
Copy link
Collaborator

odrobnik commented May 8, 2017

Just for validating you will not trigger the receipt. But if you don't have a valid one you should Refresh it from the App Store - this causes the iTunes login to be prompted.

Usually you get a receipt together with the app when installing from App Store, but in some cases you might have none or an outdated one.

@ankitkapasi
Copy link
Author

@odrobnik thanks for the clarification.

@odrobnik
Copy link
Collaborator

odrobnik commented May 9, 2017

There are some bits to the verification that are not in this component, like how to compute and verify the hash of the receipt. If you contact me privately I can provide that to you

@ankitkapasi
Copy link
Author

@odrobnik just a little confirmation.

If the user purchases and autorenewing subscription, the first time they open the app after the autorenew is processed by Apple, the app buncle receipt will automatically be updated with the latest IAP receipt from Apple. There is no need for custom code from me and there is no need for user interaction to force a receiptRefresh.

Is that accurate?

@odrobnik
Copy link
Collaborator

I am not 100% sure. I believe for the receipt to be automatically refresh when you check it. But there are a few conditions where you need to refresh it. I will email you my SubscriptionManager class to see for yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants