tinycreative / react-native-intercom

React Native wrapper for Intercom.io
MIT License
406 stars 280 forks source link

Intercom not displaying, loading spinner only #403

Closed PatrickYoung03 closed 2 years ago

PatrickYoung03 commented 3 years ago

Hi i have followed the steps to install Intercom into my react native project but i am only getting a blank screen when calling any of the methods

simulator_screenshot_48BC21EE-A459-4ACF-BF50-0FAAE2D1CC91

Screenshot 2020-10-07 at 15 28 19

"react-native": "0.63.2" "react-native-intercom": "^18.0.0",

APP.DELEGATE

mccooll commented 3 years ago

Try it on a physical hardware device.

mellisdesigns commented 3 years ago

I tried on my actual device and also have the same problem with displayMessageComposer() popping up. I have registered the users and I am also able to get to that screen by going through the displayMessageComposer() flow first. No errors are being caught when try to call the function displayMessageComposer(). IOS pops up the loading ui and does not progress. Android does not show any screen when calling it.

EDIT: Just an update, if you are using staging your IOS and Android SDK Api Key will change as well as the APP Key

Solution: Check that you have replaced your INTERCOM_APP_KEY and INTERCOM_API_KEY if you are using a staging environment.

mikevercoelen commented 3 years ago

I'm having the same problem here, just infinitely loading.

@mellisdesigns Did you manage to get it working by using different keys?

mellisdesigns commented 3 years ago

@mikevercoelen yeah, just had to double check the intercom keys which are different for android and ios as well as for each environment, staging or prod.

mikevercoelen commented 3 years ago

@mellisdesigns got it, thanks for letting me know!

akinolu52 commented 3 years ago

@mellisdesigns pls how'll i get the keys for those environment, I'm having the same issue