I'm using SwiftyStoreKit in my application. I also have an auto-renewable subscription, of which the purchase works correctly.
The auto-renewable subscription is bought and when a user launches the app, it verifies the subscription using verifyReceipt. Often when checking, a popup appears asking for the user's Apple ID and password. This behavior is rather unwanted.
If a cancels the Apple ID login or authenticates with incorrect credentials, verification throws error Cannot connect to iTunes Store, and the user is subsequently unable to use the app.
My questions:
How can I disable the Apple ID authentication when verifying using
verifyReceipt?In
SwiftyStoreKit, this is not yet implemented. How can we do the verification of the subscription offline without connection to the server but usingSwiftyStoreKit? Is there a library that can do this and is easy to connect to?