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
Hi! I'm developing a react-native app that targets Android TV and tvOS. Using react-native-iap we have successfully added support for Google Play inapp products and latest subscription model (billing API 5.0.0).
Purchase updates are received and handled perfectly well in all test scenarious except when I'm testing the "More payment options" flow, which expects the user to continue the purchase flow an another device. In this scenario the user is able to pick up the purchase flow from a desktop browser, or on an Android mobile device, and then choose to pay with "Slow test card approved after a few minutes". However, after completing the payment I can't see that we ever receive updates on PurchasesUpdatedListener. Calling RNiap.getAvailablePurchases() also returns an empty list!
Has anybody come across this issue before? Is it a development environment problem or does it happen for real/end users as well?
ps. Worth mentioning is that meanwhile the "slow card payment" is being processed I'm also exiting the purchase UI on Android TV (by pressing back button), thus re-activating the app so it can check for purchase updates/errors. However, here we do get a E_USER_CANCELLED error, which is kind of expected as there is no other way to exit Google's purchase UI, even when payment was successfully completed on that other device. ds.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi! I'm developing a react-native app that targets Android TV and tvOS. Using react-native-iap we have successfully added support for Google Play inapp products and latest subscription model (billing API 5.0.0).
Purchase updates are received and handled perfectly well in all test scenarious except when I'm testing the "More payment options" flow, which expects the user to continue the purchase flow an another device. In this scenario the user is able to pick up the purchase flow from a desktop browser, or on an Android mobile device, and then choose to pay with "Slow test card approved after a few minutes". However, after completing the payment I can't see that we ever receive updates on PurchasesUpdatedListener. Calling RNiap.getAvailablePurchases() also returns an empty list!
Has anybody come across this issue before? Is it a development environment problem or does it happen for real/end users as well?
I was able to reproduce this problem with Google's native sample app TrivialDriver, https://github.com/android/play-billing-samples/tree/main/TrivialDriveKotlin, so I don't think there's an issue with react-native-iap.
Thanks!
ps. Worth mentioning is that meanwhile the "slow card payment" is being processed I'm also exiting the purchase UI on Android TV (by pressing back button), thus re-activating the app so it can check for purchase updates/errors. However, here we do get a E_USER_CANCELLED error, which is kind of expected as there is no other way to exit Google's purchase UI, even when payment was successfully completed on that other device. ds.
Beta Was this translation helpful? Give feedback.
All reactions