Questions tagged [swiftystorekit]

Lightweight In App Purchases Swift framework for iOS 8.0+, tvOS 9.0+ and macOS 10.10+

43 questions
24
votes
4 answers

Check if an Auto-Renewable Subscription is still valid

I would like to check the Auto Renewable Subscription status whenever I open the app. This is to make sure that the user is still subscribed to the service. How do I achieve this? Any thoughts? Thank you P.S.: I am using SwiftyStoreKit
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
12
votes
1 answer

priceLocale throw an EXC_BREAKPOINT when accessed

We are using Introductory Prices on our app. And we have an issue only reproducible on one of our two QA devices which is an iPhone 6S (11.4.1) on the French App Store. The other is an iPhone 7 (12.0 with French App Store) and the app is not…
Nicolas Charvoz
  • 1,509
  • 15
  • 41
3
votes
1 answer

Conditional Imports in Swift not working?

I want to use a module (SwiftyStoreKit) which has a minimum requirement of WatchOS 6.2, however I don't want to increase my WatchOS target because I don't want to lose support for older watches. My understanding is that Swift now has conditional…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
3
votes
1 answer

URLSession dataTask returns with no error and no data, causing SwiftyStoreKit.ReceiptError error 1

Why would the following code cause URLSession to return nil for both data and error? let task = URLSession.shared.dataTask(with: storeRequest as URLRequest) { data, _, error -> Void in // there is an error if let networkError = error { …
HughHughTeotl
  • 5,439
  • 3
  • 34
  • 49
2
votes
1 answer

How to change from paid version to free version with subscriptions in iOS / StoreKit 2

I have an existing app on the app store since many years. Users had to pay to download the app. Now I want to shift to a freemium model by implementing in-app purchases. And I want to be fair to previous-purchasers of my app. I searched and read a…
LukeSideWalker
  • 7,399
  • 2
  • 37
  • 45
2
votes
1 answer

Auto-Renewing with SwiftyStoreKit

SwiftyStoreKit is a very difficult product for me since almost a week, I search everywhere in StackOverflow, YouTube, and Google for answers. I couldn't find any answer since I am working on Auto-Renewable and I tried to find out if user cancelled…
Travgalax
  • 81
  • 1
  • 7
2
votes
0 answers

SwiftyStoreKit: Purchasing triggers callback in AppDelegate

I am implementing SwiftyStoreKit to help with In-App Purchases on iOS. I have a server that is setup to validate receipts, so what I'm trying to accomplish is: User taps to buy IAP product If success, receipt is fetched and sent to server for…
Grambo
  • 887
  • 8
  • 25
2
votes
0 answers

In-app purchase failed while verifying receipt

In my application I have 3 consumable in-app purchases. I have tested them in sandbox environment and they work as expected. I use the SwiftyStoreKit framework for in-app purchases. The following code is used to perform the purchase. func purchase(_…
jogshardik
  • 1,446
  • 1
  • 12
  • 23
2
votes
1 answer

SwiftyStoreKit - How to properly restore auto renewable subscriptions?

So I have a really basic concept of auto-renewable subscriptions in the app which unlocks PRO functionality. I also have a non-consumable purchase which is a "one-time purchase subscription" which unlocks the PRO functionality once and…
SmartTree
  • 1,381
  • 3
  • 21
  • 40
2
votes
1 answer

InApp Purchase Consumable Server Validation Set Up

I am using SwiftyStoreKit for InApp Purchase Consumable for a tip jar. Everything works for testing but according to this answer and the comments server side validation isn't necessary but it is suggested. The answer states "consumables,…
Lance Samaria
  • 17,576
  • 18
  • 108
  • 256
2
votes
1 answer

Check If a user has already purchased a product in SwiftyStoreKit

I implemented in-app Purchases and I am using SwiftyStoreKit. Everything works fine but want to check if the user has already purchased the product. I want when the user goes in the inappropriate page to show a button. If its bought then to shows…
Jason
  • 21
  • 2
2
votes
1 answer

how to restore subscription for old users in SwiftyStorekit?

In the first version, I was using 3 product id's Monthly Three Months And yearly Subscription And in my new version of app there are 2 product id's, which are totally new Month Year So my question is, for old users who have already purchased…
Akshaykumar Maldhure
  • 1,239
  • 1
  • 18
  • 32
2
votes
1 answer

SwiftyStoreKit. How to verify subscription without entering a password?

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…
Viktor
  • 1,155
  • 14
  • 23
1
vote
0 answers

StoreKit 2: `try await Product.products` does not finish and does not throw. Can watchOS fetch products on TestFlight builds? iOS works

I am using a class that targets both my iOS as well as my watchOS target - so both use the same code. If I upload my code to TestFlight, my iPhone is able to fetch the products just fine. However, with my Apple Watch, the process seems to stall. I…
swtype
  • 41
  • 2
1
vote
1 answer

We noticed that the different durations of your auto-renewable subscriptions were still created as separate in-app purchase products

i have create 3 different auto renew subscription of different duration in same subscription group. Weekly,Monthly,Yearly within 1 subscription group. App reject for below reason Guideline 3.1.2 - Business - Payments - Subscriptions We noticed that…
1
2 3