| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
An unofficial Expo config plugin for easily setting up React Native Intercom with expo dev clients
expo install config-plugin-react-native-intercom expo-build-properties
# using yarn
yarn add config-plugin-react-native-intercom expo-build-properties
# using npm
npm install config-plugin-react-native-intercom expo-build-propertiesOpen your app.json and update your plugins section:
{
"plugins": [
[
"expo-build-properties",
{ "android": { "compileSdkVersion": 33, "targetSdkVersion": 33 } }
],
"config-plugin-react-native-intercom"
]
}The plugin needs your intercom api key so that it can communicate with the intercom application.
{
"plugins": [
[
"config-plugin-react-native-intercom",
{
"iosApiKey": "<your-api-key>",
"androidApiKey": "<your-api-key>",
"appId": "<your-app-id>"
}
]
]
}{
"plugins": [
[
"config-plugin-react-native-intercom",
{
//...
"iosPhotoUsageDescription": "Upload to support center"
}
]
]
}{
"ios": {
"infoPlist:":{
"IntercomRegion": "EU"
}
}
}
{
"plugins": [
[
"config-plugin-react-native-intercom",
{
//...
"intercomEURegion": "true"
}
]
]
}{
"plugins": [
[
"config-plugin-react-native-intercom",
{
//...
"isPushNotificationsEnabledIOS": true
}
]
]
}{
"plugins": [
[
"config-plugin-react-native-intercom",
{
//...
"isPushNotificationsEnabledAndroid": true,
"androidIcon": "<string>" //Customize the icon for intercom push notifications from the intercom default
}
]
]
}If you want push notifications to fire when new messages are sent in a conversation, it is necesssary to create a push notification channel for these. Push notifications for new conversations require no additoonal setup.
useEffect(() => {
if (Platform.OS === 'android') {
Notifications.setNotificationChannelAsync('intercom_chat_replies_channel', {
name: 'Intercom Replies Channel',
description: 'Channel for intercom replies',
importance: Notifications.AndroidImportance.MAX,
})
}
}, [])You can either:
Contributions are very welcome! The package uses expo-module-scripts for most tasks. You can find detailed information at this link.
Please make sure to run yarn build/yarn rebuild to update the build directory before pushing. The CI will fail otherwise.
the Expo team
MIT
| Back | FazBrowse Home | New Git URL |