You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no API in SwiftyStoreKit for this. You could do the following:
Once the user makes a purchase the first time after installing the app, store the purchase information locally, for example using the keychain. You can then query you keychain anytime to see if the product has been purchased
One advantage of using the keychain is that the information will still be there even if the user deletes and reinstalls the app. See this answer.
If you don't use the keychain, you can still rely on the restore purchases call to be requested by the user after she has reinstalled the app.
@bizz84 A side question related to this. Does this library have a function to check expiration of a subscription? I would to check somewhere if the subscription is valid and then take away privileges if it expires.
ho to check if a product was previously purchased
Thank you very much
The text was updated successfully, but these errors were encountered: