Skip to content

Commit 5263917

Browse files
authored
Update Readme (#430)
Updated the android set up configuration according to the latest libraries updates
1 parent 1f579fc commit 5263917

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,11 @@ React Native wrapper for Intercom.io. Based off of [intercom-cordova](https://gi
9090
}
9191
9292
public List<ReactPackage> getPackages() {
93-
return Arrays.<ReactPackage>asList(
94-
9593
// ...other configuration here...
9694
97-
new IntercomPackage()
95+
packages.add(new IntercomPackage());
9896
9997
// ...other configuration here...
100-
101-
);
10298
}
10399
}
104100
```
@@ -132,7 +128,8 @@ React Native wrapper for Intercom.io. Based off of [intercom-cordova](https://gi
132128
133129
//...other configuration here...
134130
135-
compile 'io.intercom.android:intercom-sdk-fcm:5.+'
131+
implementation 'io.intercom.android:intercom-sdk-base:9.+'
132+
implementation 'io.intercom.android:intercom-sdk:9.+'
136133
}
137134
```
138135
@@ -148,12 +145,12 @@ React Native wrapper for Intercom.io. Based off of [intercom-cordova](https://gi
148145
import android.content.Intent;
149146
import android.content.Context;
150147
import io.intercom.android.sdk.push.IntercomPushClient;
151-
import io.invertase.firebase.messaging.RNFirebaseMessagingService;
148+
import io.invertase.firebase.messaging.ReactNativeFirebaseMessagingService;
152149
import com.google.firebase.messaging.RemoteMessage;
153150
import android.util.Log;
154151
import java.util.Map;
155152
156-
public class MainMessagingService extends RNFirebaseMessagingService {
153+
public class MainMessagingService extends ReactNativeFirebaseMessagingService {
157154
private static final String TAG = "MainMessagingService";
158155
private final IntercomPushClient intercomPushClient = new IntercomPushClient();
159156
@@ -200,6 +197,8 @@ React Native wrapper for Intercom.io. Based off of [intercom-cordova](https://gi
200197
</application>
201198
</manifest>
202199
```
200+
201+
* make sure you have only one service intent with action com.google.firebase.MESSAGING_EVENT
203202
204203
1. Import Intercom and use methods
205204

0 commit comments

Comments
 (0)