Comments (4)
Hi @bobmp. Thanks for contributing.
I think StoreKit is meant to load all products at startup, or as soon as you're able.
In any case, combining both operations into one would complicate the code you add to the failure block, as you would have to deal with two more cases: RMStore failed to load the product, and the product identifier is invalid (which would require to add an additional parameter to the error).
I believe the current API makes error handling simpler. So unless someone makes a strong case about this feature, I don't think it should be part of RMStore.
from rmstore.
Hi,
I do kind of agree with you, but I have this problem here. As soon as the user starts my app, he can immediately purchase the In-App Purchase. With 1 tap. So if I start loading the product and the user taps on the purchase before the product request is done, it will fail. But I guess perhaps I should rethink my app or simply keep the product-check I've implemented already.
from rmstore.
What's preventing your from loading the products on the 1 tap? And then initiating the purchase on the success block? The user doesn't have to know what's going on under the hood.
from rmstore.
Yes that's what I do now. I check if I have the product or not, if not, download it, if I do, start purchase. I just don't like it that I have 2 blocks after each other now :)
from rmstore.
Related Issues (20)
- How an appid can purchase the same automatic subscription product for multiple user IDs
- iOS 11 new storekit feature : buy in-app directly from apple store HOT 6
- RMAppReceipt RMASN1ReadInteger undefined behavior
- Update defaultStore to return instancetype?
- Create a new official fork to keep RMStore up to date HOT 3
- Crashes in `RMKeychainGetValue` HOT 1
- Subscription expired notification for auto-renewable subscription HOT 1
- Problems conflicting with BoringSSL HOT 1
- Will disconnect from keychain mean purchases can't be restored? HOT 1
- Getting SSServerErrorDoamin code=2059 HOT 1
- iOS 12 beta “can not connect itune store” HOT 1
- TestFlight vs Sandbox for RMAppReceipt
- Project Catalyst issue
- Checking for an active auto-renewable subscription returns incorrect results HOT 2
- Subscriptions HOT 3
- 用户第一次绑卡操作时候漏单处理 HOT 8
- 'RMStoreContentDownloader' defined here has different definitions in different modules; first difference is this method HOT 2
- Receipt is nil
- Does this support Xcode 13.4.1?
- Couldn’t communicate with a helper application
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmstore.