chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
890 stars 185 forks source link

undefined is not an object (evaluating 'InAppUtils.loadProducts') #153

Closed hugoh59 closed 6 years ago

hugoh59 commented 6 years ago

I'm stuck on this for a few days, I've seen the previous issue when they fixed it by reinstalling the app in the simulator but it didn't work for me. Any idea howI could fix it? I've also followed the guide from react native on making sure libraries are linked...

hugoh59 commented 6 years ago

I'm not sure how I managed to make it work but after doing another detach and multiple uninstall / install of the package I managed to make it work in the end. I'm now stuck at getting back the products from the loadProducts method.

BenBach commented 6 years ago

@hugoh1995 How did you resolve this?

guopeng1994 commented 6 years ago

i'm in this trouble too! and i dont know how to resolve it.i need help!!!!

tombaki commented 6 years ago

in same problem !!

temitope commented 6 years ago

same problem on device and simulator...

malithjkmt commented 6 years ago

I also encountered this issue. react-native install react-native-in-app-utils didn't linked the InAppUtils library. Had to link manually Now it works fine!

MarkMark commented 6 years ago

You may have to cd into ios and run pod install

jitadlak commented 2 years ago

React native InappUtils works on android app ? i Have same error on android project