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
When opening an app cold, the listener doesn't appear to fire at all. I've tried putting the initialization code in App.js, and even index.js to see, but it doesn't fire at all.
I also tried using 7.0.1 with the new useIAP hook to just grab promotedProductsIOS directly - it does not work on startup from both a terminated state or background state
When opening an app sitting in the background, the listener does fire, and the productId returned is correct
The text was updated successfully, but these errors were encountered:
amiceli-torstar
changed the title
getPromotedProductIOS event doesn't trigger at all when opening an app cold
getPromotedProductIOS event doesn't trigger at all when opening an app
Jul 7, 2021
amiceli-torstar
changed the title
getPromotedProductIOS event doesn't trigger at all when opening an app
getPromotedProductIOS event doesn't trigger at all when opening an app that is not currently running
Jul 7, 2021
amiceli-torstar
changed the title
getPromotedProductIOS event doesn't trigger at all when opening an app that is not currently running
getPromotedProductIOS event doesn't trigger at all when opening an app from a terminated state
Jul 8, 2021
Added new test case - tried using 7.0.1 with your useIAP hook to just grab promotedProductsIOS directly - it does not work on startup from both a terminated state or background state
Version of react-native-iap
4.5.0, 6.2.4, 7.0.1 (tried both versions)
Version of react-native
0.64.2
Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
When adding in the snippet of code specified here: https://react-native-iap.dooboolab.com/docs/faq/, I expect the event to fire upon opening the app cold
Actual behavior
When opening an app cold, the listener doesn't appear to fire at all. I've tried putting the initialization code in App.js, and even index.js to see, but it doesn't fire at all.
I also tried using 7.0.1 with the new useIAP hook to just grab promotedProductsIOS directly - it does not work on startup from both a terminated state or background state
When opening an app sitting in the background, the listener does fire, and the productId returned is correct
Tested environment (Emulator? Real Device?)
Real device (Iphone 7, iOS 14.4.2)
Steps to reproduce the behavior
Added the snippet of code from the faq to my codebase, tried running the app. Used test url from https://developer.apple.com/documentation/storekit/original_api_for_in-app_purchase/testing_promoted_in-app_purchases to try it.
The text was updated successfully, but these errors were encountered: