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
Please use the Discussion board if you want to get some help. Please use issues to report bugs.
Description
This function is not working when i open app from terminated state and i am unable to get the product details
RNIapEmitter.addListener('iap-promoted-product', async () => {
// Check if there's a persisted promoted product
const productId = await RNIap.getPromotedProductIOS();
ShowLogs('in-app promoted products1',productId)
if (productId !== null) {
// You may want to validate the product ID against your own SKUs
try {
ShowLogs('in-app promoted products2')
await RNIap.buyPromotedProductIOS(); // This will trigger the App Store purchase process
} catch (error) {
console.warn(error);
}
}
});
Expected Behavior
If user open app from terminated state the this listener should work and apple subscription tray should open for the respective product on which user clicks on app store.
To Reproduce
Steps to reproduce the behavior:
Paste the above in the early lifecycle of app.
Click on below link while your app is in terminated state.
App launch then listener should work but it is not working.
Testing Url
itms-services://?action=purchaseIntent&bundleId=com.example.app&productIdentifier="your Product id"
The text was updated successfully, but these errors were encountered:
Description
This function is not working when i open app from terminated state and i am unable to get the product details
RNIapEmitter.addListener('iap-promoted-product', async () => {
// Check if there's a persisted promoted product
const productId = await RNIap.getPromotedProductIOS();
ShowLogs('in-app promoted products1',productId)
if (productId !== null) {
// You may want to validate the product ID against your own SKUs
try {
ShowLogs('in-app promoted products2')
await RNIap.buyPromotedProductIOS(); // This will trigger the App Store purchase process
} catch (error) {
console.warn(error);
}
}
});
Expected Behavior
If user open app from terminated state the this listener should work and apple subscription tray should open for the respective product on which user clicks on app store.
Environment:
To Reproduce
Steps to reproduce the behavior:
Paste the above in the early lifecycle of app.
Click on below link while your app is in terminated state.
App launch then listener should work but it is not working.
Testing Url
itms-services://?action=purchaseIntent&bundleId=com.example.app&productIdentifier="your Product id"
The text was updated successfully, but these errors were encountered: