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
Platforms you faced the error (IOS or Android or both?)
iOS
Actual behavior
its my first IAP test and i need help.
When I purchase the product i still purchased (Sandbox) I get "You allready buyed this product. The product will be restored." But i get no callback or return. How can i handle this restoring process so i can save the purchased state and the User can use the Product?
Or does'nt it work this way?
@Finneah You are not understanding the iap feature correctly. Restore purchase is to get products you've already purchased in other device when you reinstalled the app. To re-buy the item you should create product as consumable.
Hello @hyochan
thank you for answering so fast.
I don't think i missunderstood it. I think i did'nt explain it exactly:
Use-Case:
user can buy a product (one-time purchase for example 'Premium')
user buys this product.
user install the App on another device (same Apple ID)
Now, i have seen it on other Apps:
Product is not showed as buyed (because i don't want to ask for already buyed products at App-Start, as i said, i have seen it on other Apps)
3. user clicks on "buy product"
4. Alert "alredy buyed" is viewed and the Message that the purchase will be restored is showed.
But nothing happens.
For this i need a return that the Product is restored but i do not get anything and the next console.log is not showed.
const purchase = await RNIap.buyProduct(productIdentifier);
console.log('TEST', purchase); <= will not be shown
Version of react-native-iap
2.4.7
Version of react-native
0.57.8
Platforms you faced the error (IOS or Android or both?)
iOS
Actual behavior
its my first IAP test and i need help.
When I purchase the product i still purchased (Sandbox) I get "You allready buyed this product. The product will be restored." But i get no callback or return. How can i handle this restoring process so i can save the purchased state and the User can use the Product?
Or does'nt it work this way?
My Code
Tested environment (Emulator? Real Device?)
Real device (iPad)
Thanks for help
The text was updated successfully, but these errors were encountered: