SwiftyStoreKit | App Purchases Swift framework for iOS | iOS library
kandi X-RAY | SwiftyStoreKit Summary
kandi X-RAY | SwiftyStoreKit Summary
During WWDC21, Apple introduced StoreKit 2, a brand new Swift API for in-app purchases and auto-renewable subscriptions. While it would be highly desirable to support StoreKit 2 in this project, little progress has been made over the last year and most issues remain unanswered. The good news is that RevenueCat is a great alternative to SwiftyStoreKit, offering great APIs, support, and much more at a very reasonable price.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SwiftyStoreKit
SwiftyStoreKit Key Features
SwiftyStoreKit Examples and Code Snippets
Community Discussions
Trending Discussions on SwiftyStoreKit
QUESTION
I am facing one issue regarding in-app purchase.I tried searching out lot but ended up here for the help. My client had asked me to change the bundleId of the ios and change the account for releasing the app. Thus I had to create a new app in appStoreConnect for implementing in-app purchase prices. The issue is I have done all the necessary steps related to in-app purchase, but still not getting product details in my code. I am using SwiftyStoreKit for the same. I don't know where I am going wrong. Any help will be appreciated. Thanks.
...ANSWER
Answered 2021-Oct-22 at 12:06No, the Product Ids which you already set in App Store are set for good. They cannot be changed or reused across other apps you have (even if you delete one product with a specific Id, you cannot create a new product with the same Id). You can check the Revenue Cat docs, they explain how apple products work pretty well https://docs.revenuecat.com/docs/ios-products
QUESTION
Run fails with the error for mac Catalyst
ANSWER
Answered 2021-Mar-10 at 10:39Integrating SwiftStoreKit
with Swift Package Manager solves the issue.
If you are using Xcode 11 or later:
- Click File
- Swift Packages
- Add Package Dependency...
- Specify the git URL for SwiftyStoreKit.
QUESTION
I'm getting the following error when trying to archive my IOS code
...ANSWER
Answered 2021-Mar-06 at 17:05Here's how the leveldb headers get found in my version of the FirebaseDatabase quickstart:
QUESTION
I am using SwiftyStoreKit with SwiftUI and App instead of App Delegate and getting this message in the console: "SwiftyStoreKit.completeTransactions() should only be called once when the app launches." I believe it because I am calling completeTransactions in the below block which I can see from the Print statement gets called more often than previously AppDelegate's didFinishLaunching was called. The reason I am paying attention to this message is I got rejected from App Review for a crash when attempting to purchase. Where else should I call completeTransactions?
...ANSWER
Answered 2021-Jan-11 at 17:07Try to do this in app main init, like
QUESTION
I'm newbie with in-app purchases and SwiftyStoreKit.
I made an in-app purchases in my app and sent it for moderation.
My application moderator rejected and wrote the reason:
We found that your in-app purchase products exhibited one or more bugs when reviewed on iPhone and iPad running iOS 14.1 on Wi-Fi.
Specifically, your app’s In-App Purchases do not show the app’s price. Also, upon further review, we found that your app does not allow users to purchase the In-App Purchases.
Next Steps
When validating receipts on your server, your server needs to be able to handle a production-signed app getting its receipts from Apple’s test environment. The recommended approach is for your production server to always validate receipts against the production App Store first. If validation fails with the error code "Sandbox receipt used in production," you should validate against the test environment instead.
The price was not displayed probably because the application received the answer code: "skerrordomain code=0" or something like that. Or because the Apple server returned 0 products.
That is, when ViewController starts, app request the price of the products from the Apple server and then write it down to the buttons.
I don't know exactly what the problem is, because on my local device purchases work with a Sandbox user. In Simulator I get an error: "skerrordomain code=0".
Here is a code sample:
...ANSWER
Answered 2020-Nov-10 at 11:31Fixed by removing all products and creating new ones.
QUESTION
I would like to show an ActionSheet
containing InApp purchase objects the user can purchase.
But I want that sheet to contain the prices of such objects, like:
...ANSWER
Answered 2020-Nov-09 at 18:28A possible solution is to return prices in a completion
handler and only then display the action sheet:
QUESTION
My View don't check that's the value has changed. Can you tell me why or can you help me?
You can see below the important code.
My Class
...ANSWER
Answered 2020-Sep-17 at 12:43SwiftyStoreKit.verifyReceipt
is an asynchronous function and @Published
variables must be updated on the main thread.
Try adding DispatchQueue.main.async
when you change the Trigger
variable in the background:
QUESTION
I added a CocoaPod (SwiftySandboxFileAccess
) to my project and now I'm getting the following error:
ANSWER
Answered 2020-Aug-05 at 16:52It looks like it is failing to locate file_vacuum
library which is a static library based on your screenshots. Make sure you add the path for that file in your LIBRARY_SEARCH_PATH
in your target Build Settings. You can also just search for search paths and find it there. In general, whenever there's an error about not finding a header file or an object, it's related to search paths and means Compiler isn't able to find information for that type / library.
Framework, Library, and Header search paths are the three types you can define and help the Compiler to find those files.
QUESTION
In the documentation for SwiftStoreKit it is written that the Receipt can be obtained using
...ANSWER
Answered 2020-Feb-13 at 13:23If you want to use this library you need to implement your own logic to do the local verification of receipt.
according to README from this library
You should implement your secure logic by validating your receipt locally, or sending the encrypted receipt data and validating it in your server.
Local receipt validation is not implemented (see issue #101 for details).
This may help you https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateLocally.html#//apple_ref/doc/uid/TP40010573-CH1-SW2
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SwiftyStoreKit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page