Skip to content

Commit 4e4f18b

Browse files
docs: add Android push notification guidance to Expo README section
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 843afca commit 4e4f18b

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,10 @@ Add the necessary permission descriptions to infoPlist key.
660660

661661
Next, rebuild your app as described in the ["Adding custom native code"](https://docs.expo.io/workflow/customizing/) guide.
662662

663+
The Expo plugin automatically generates a `FirebaseMessagingService` for Android that routes Intercom pushes to the SDK and passes non-Intercom messages through to other handlers (e.g. `expo-notifications`).
664+
665+
> **Note**: If your app uses another SDK that registers its own `FirebaseMessagingService` (e.g. OneSignal, Braze), list `@intercom/intercom-react-native` **before** that SDK in your `plugins` array. This allows the plugin to detect the other service and skip its own registration, avoiding conflicts.
666+
663667
#### Expo: Push notification deep links support
664668

665669
> **Note**: You can read more on Expo [documentation](https://docs.expo.dev/guides/deep-linking)

src/expo-plugins/withAndroidPushNotifications.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,6 @@ const writeFirebaseService: ConfigPlugin<IntercomPluginProps> = (_config) =>
128128
},
129129
]);
130130

131-
/**
132-
* Adds the FirebaseMessagingService entry to the AndroidManifest.xml
133-
* so Android knows to route FCM events to our service.
134-
*
135-
* If another FirebaseMessagingService is already registered (from another
136-
* SDK or manual setup), skips registration and warns. Note: due to Expo's
137-
* LIFO mod execution order, this detection only works when the conflicting
138-
* plugin is listed AFTER @intercom/intercom-react-native in the plugins
139-
* array. If your app has another FCM-handling SDK, list Intercom first
140-
* in the plugins array to ensure conflict detection works correctly.
141-
*/
142131
const registerServiceInManifest: ConfigPlugin<IntercomPluginProps> = (
143132
_config
144133
) =>

0 commit comments

Comments
 (0)