bizz84 / bizz84/SwiftyStoreKit

How to avoid "Sign in to iTunes" popup on every app launch

Open
#406 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
6.7k
Forks
801
PR merge metrics
No merged PRs in 30d

Description

### Platform

- [x] iOS

### In app purchase type

- [x] Non-consumable
- [x] Auto-Renewable Subscription

### Environment

- [x] Sandbox

### Version

0.13.3

## Report

### Issue summary

I'm only allowing users to access the app after they buy a subscription. To make sure that the auto-renewable subscription is still active I call `SwiftyStoreKit.verifyReceipt` and `SwiftyStoreKit.verifySubscriptions` to receive all the receipts and check the expiration date every time the app is launched. Calling those methods causes "Sign In To iTunes Store" pop-up appear every time.

Is there a good way to avoid those popups while still being able to verify that the subscription is still active on each app launch?

One possible solution would be for me to keep the receipts on my own backend and verify them first instead of going straight to iTunes Store. Is that what everyone is doing?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.