You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now when I try to make an In-App Purchase and the product hasn't been requested yet it returns with an error.
I believe it would be really nice if it doesn't have the product yet it automatically requests it first and then proceeds to the purchase automatically.
Otherwise I have to always check if the product is available or not in RMStore before trying the addPayment...
The text was updated successfully, but these errors were encountered:
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.
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.
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.
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 :)
Now when I try to make an In-App Purchase and the product hasn't been requested yet it returns with an error.
I believe it would be really nice if it doesn't have the product yet it automatically requests it first and then proceeds to the purchase automatically.
Otherwise I have to always check if the product is available or not in RMStore before trying the addPayment...
The text was updated successfully, but these errors were encountered: