tinycreative / react-native-intercom

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

Implementing a test workspace in Intercom #381

Closed agnieszkabugla closed 4 years ago

agnieszkabugla commented 4 years ago

I have implemented a test workspace in Intercom (https://www.intercom.com/help/en/articles/188-create-a-test-workspace-in-intercom)

So now i have two AppIds: one for PRD and the other for DEV and TST.

How can i implement it now in AppDelegate.m and MainApplication.java so that Intercom AppId is dynamic, based on my environment?

minhnc commented 4 years ago

You can define intercom key & id in different env files with react-native-config, and use them in AppDelegate.m and MainApplication.java.

agnieszkabugla commented 4 years ago

yes, i did it this way. I used react-native-config ;)