I have implemented the IAP module and connectAysnc promise returns a path to a bundle error, no details just a path to cached bundle. I have no idea how to even inspect that bundle from an APK to see what function even failed, I wish someone at expo would have taken the time to publish a functional example app, or tests, because at this point I don’t believe it even works. If anyone reading this has an example somewhere please post.
Hey @binah can you tell me more about the error you’re getting? Opening a GitHub issue with more detail and the output of expo diagnostics might help figure out what’s causing it.
Have you followed all of the prerequisite setup steps found in the docs? Expo IAP won’t work unless you configure your app and purchasable items in the App Store Connect/Google Play Console.
I’m connected to app store and even retrieving my products list, however, when I finally run purchaseItemAsync I keep instantly getting this error instantly out of the listener:
“WARN: Something went wrong with the purchase. Received response code 2 and errorCode 0”
Error code 0 indicates something went wrong internally. See the error code list in the docs for reference. In this case, you’re seeing IAPErrorCode.UNKNOWN.
Are you running this in a simulator by chance? Make sure you’re using a physical device as IAP won’t work in a simulator and will likely throw this exact error.
Otherwise, if you’re seeing this error on iOS it may be an issue with your iTunes or test user account. See the Apple docs for reference.
am also facing some issues with expoInAppPurchase.in my case await connectAsync(); returns undefined in ios.am using real device(ios 14.4).what should i do?