Hi,
I have an ejected app, and I’m using the react-native-intercom
library. That library has you modify your Java/ObjectiveC code, so you can tell it what api key to use.
@Override
public void onCreate() {
super.onCreate();
Intercom.initialize(this, "whatever", "whatever");
}
I can make that change, but I’d rather not hard-code the api key.
It would make more sense to put it where I’m putting other credentials, which is in the app.json file. I have separate app.json files for staging & production, so it’s easy to switch between them.
Anyway, if I put that apiKey in app.json, is there a way to get that value on the Java/ObjectiveC side?
I thought there must be, since presumably you must read out values from the app.json on the native side occasionally, but I can’t seem to find what it might be.
Any suggestions?