Skip to content

Commit db2a763

Browse files
committed
update fallback firebase messaging version to 24.1.2
1 parent 2568b87 commit db2a763

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,21 @@ apply from: file("../../node_modules/@react-native-community/cli-platform-androi
176176

177177
- Place `google-services.json` in `android/app` directory.
178178

179+
**Optional: Firebase Messaging Version Override**
180+
181+
By default, this library uses Firebase Messaging version `24.1.2`. If you need to use a specific version for compatibility reasons, you can override it in your `android/build.gradle`:
182+
183+
```Gradle
184+
buildscript {
185+
ext {
186+
// ... other configurations
187+
firebaseMessagingVersion = "25.0.0" // Your desired version
188+
}
189+
}
190+
```
191+
192+
**Note:** We don't recommend overriding the Firebase Messaging version unless necessary for your specific use case.
193+
179194
- Create `MainNotificationService.java` inside your app directory(`com.example.app`) with below content:
180195

181196
**_Remember to replace `package com.example.app;`, with your app package name_**
@@ -383,7 +398,7 @@ func application(_ application: UIApplication, didFinishLaunchingWithOptions lau
383398
Intercom.setApiKey("<Your iOS API Key>", forAppId: "<Your App ID>")
384399
....
385400
}
386-
401+
387402
```
388403

389404
#### iOS: Permissions

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ repositories {
8787
dependencies {
8888
//noinspection GradleDynamicVersion
8989
implementation "com.facebook.react:react-native:+" // From node_modules
90-
implementation "com.google.firebase:firebase-messaging:${safeExtGet('firebaseMessagingVersion', '20.2.+')}"
90+
implementation "com.google.firebase:firebase-messaging:${safeExtGet('firebaseMessagingVersion', '24.1.2')}"
9191
implementation 'io.intercom.android:intercom-sdk:17.1.0'
9292
implementation 'io.intercom.android:intercom-sdk-ui:17.1.0'
9393
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@intercom/intercom-react-native",
3-
"version": "9.0.1",
3+
"version": "9.0.2",
44
"description": "React Native wrapper to bridge our iOS and Android SDK",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",

0 commit comments

Comments
 (0)