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

Not possible to determine if user has subscription or eligible for trial from local receipts on IOS #1620

Open
DontGiveAFck opened this issue Nov 5, 2024 · 0 comments

Comments

@DontGiveAFck
Copy link

Observed behavior

We are using this plugin for a while and iaptic (former fovea) service for receipts validations. We updated our app to new version with latest version of IAP (v13.11.1). Our products are auto renewable subscriptions.

Currently we are facing 3 issues with it, these issues are only related to IOS:

  1. Sometimes a user that made purchase in v11 IAP plugin after app update doesn't have his subscriptions in the new app version - it happens because there are no locally stored receipts after app update, or plugin can't find them.

  2. It's not possible to know if user has active subsctiption on app start (Looks like issue already opened Load local receipt at startup to see my owned products are #1529)

  3. It's not possible to know if user eligible for trial - we should know if user can purchase a trial period to show it in offerings page on app start but currently it's not possible to know since there are no local receipts.

To solve these issues on IOS we call restorePurchases() method on app start but it leads to another issues since it shouldn't work this way. (restorePurchases should be invoked only when user clicks on 'Restore purchases' button).

Expected behavior

on IOS:

  1. After app update it's possible to get local receipts and determing if user has active subsciption
  2. Receipts exists locally and it's possible to check if user has active subscription on app start
  3. From locally stored receipts it's possible to determine trial eligibility
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

1 participant