Closed asnaseer closed 10 months ago
I managed to finally work out what was wrong, I needed to enable the Intercom Messenger button in the app by calling:
import Intercom, { Visibility } from "@intercom/intercom-react-native";
...
await Intercom.setLauncherVisibility(Visibility.VISIBLE);
...
I am trying to get the Intercom Messenger to display in my React Native application and found this library which I thought is what I needed. I have done the following:
yarn add @intercom/intercom-react-native@4.0.1
npx expo install config-plugin-react-native-intercom
app.json
file under the"expo"
"plugins"
section (xxxx
,yyyy
, andaaaa
are obfuscated values here):{ "android": { "compileSdkVersion": 33, "targetSdkVersion": 33 } }
into the"expo-build-properties"
as I believe these are the defaults for Expo 48runtimeVersion
inapp.config.ts
npx eas-cli build --platform all --profile development -m "Test dev client for Intercom"
Once Expo completed building the dev clients, I installed the new dev client on my iPhone by scanning the QR code from the Expo Build for iOS and then ran
yarn start
and scanned the QR code from my iPhone to login to our application but do not see the Intercom Messenger displayed anywhere.I then tried adding this to where we handle a user logging into our app:
and added this to where we handle a user logging out:
but still do not see the Intercom Messenger anywhere.
Is there some other set of steps that I have forgotten to follow?
My configuration is: