In App Purchase examples

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.

In the meantime I will be implementing https://github.com/dooboolab/react-native-iap because they have provided example code

1 Like

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.

There also used to be an example app for IAP (PR introducing it here: https://github.com/expo/expo/pull/4615), but it must have gotten removed recently. Looking through that PR might help you get a better understanding of how to use the API though.

Actually looks like the example app has been moved. You can find it here.