bizz84 / bizz84/SwiftyStoreKit

Cannot connect to iTunes Store when purchasing

Open
#377 23 comments 6 reactions 0 assignees View on GitHub
area: purchase flows difficulty: intermediate help wanted type: bug
Dominant language
Swift
Stars
6.7k
Forks
801
PR merge metrics
No merged PRs in 30d

Description

### Platform

- [x] iOS
- [ ] macOS
- [ ] tvOS

### In app purchase type

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

### Environment

- [ ] Sandbox
- [x] Production

### Version
0.13.2

## Report

### Issue summary
In my new app, I see a lot of failed purchases all with the same error: Cannot connect to iTunes Store

I've read that this happens `If the user cancels, receipt refresh will fail with a Cannot connect to iTunes Store error.` So basically on a receipt refresh. But it happens to me when users are trying to purchase...

I only use the `SwiftyStoreKit.purchaseProduct(product)` method and no refresh method.
Also, I have like 4 times the number of fails instead of successes. This is kind of suspicious to me...

Do others also have this high amount of fails? Or even the same error message on the fail?

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.