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
I did all types of implementations, connected hook or "innitConnection" method sounds good, also when I did try method "getAvailablePurchases" has opened dialog asking to login into Apple Account.
All configurations are ok, I did stress a lot on that part on the apple portal.
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
-
Hello folks!
I did all types of implementations, connected hook or "innitConnection" method sounds good, also when I did try method "getAvailablePurchases" has opened dialog asking to login into Apple Account.
All configurations are ok, I did stress a lot on that part on the apple portal.
`const itemSkus = Platform.select({
ios: [
'XXXXXXXX',
],
android: [
],
})
const {
connected,
products,
promotedProductsIOS,
subscriptions,
purchaseHistories,
availablePurchases,
currentPurchase,
currentPurchaseError,
finishTransaction,
getProducts,
getSubscriptions,
getAvailablePurchases,
getPurchaseHistories,
} = useIAP()
const fireIap = async () => {
if(connected){
console.log('conectado')
}
try {
console.log('start')
await getProducts(itemSkus)
console.log('Got products');
} catch (error) {
alert('Everything failed. Error: ', error)
}
}`
Never came into alert for Catch or even go to console.log('Got products'), also all the configs with context withIAPContext is ok!
My question is: Should I implement https://developer.apple.com/documentation/xcode/setting-up-storekit-testing-in-xcode ?
All examples, guides, and videos look so simple to get all products and subs without having to configure that...
Also, they say about propose about configure storekit:
The early stages of development or before you’ve configured in-app purchases in App Store Connect.
Local testing when a network connection isn’t available.
I'm using
react: "17.0.1",
react-native: "0.64.2",
xcode 13.2.1
Tested in many type of virtual devices and my phisical one...
Can someone help me with that?
Beta Was this translation helpful? Give feedback.
All reactions