**NOTE:** The version should match the version specified in `react-native-fcm`. Please refer to `node_modules/react-native-fcm/android/src/build.gradle`.
**NOTE:** Please refer to https://firebase.google.com/docs/android/setup
- Edit `android/app/build.gradle`. Add at the bottom of the file:
**NOTE:** The resource `@mipmap/ic_launcher` is referring to `android/app/src/res/mipmap-<resolution>` folder. Feel free to change the filename if you have a customised icon for notification.
If you are using other firebase libraries, check this for solving dependency conflicts https://github.com/evollu/react-native-fcm/blob/master/Examples/simple-fcm-client/android/app/build.gradle#L133
If you are using other firebase libraries, check this for solving dependency conflicts https://github.com/evollu/react-native-fcm/blob/master/Examples/simple-fcm-client/android/app/build.gradle#L133
- Edit `android/settings.gradle`
### Edit `android/settings.gradle`
```diff
```diff
...
...
+ include ':react-native-fcm'
+ include ':react-native-fcm'
...
@@ -173,7 +179,10 @@ public class MainActivity extends ReactActivity {
...
@@ -173,7 +179,10 @@ public class MainActivity extends ReactActivity {
}
}
```
```
- Make sure in `MainApplication.java` you have
### Make sure in `MainApplication.java` you have the code below:
**NOTE:** The packages listed inside should appear once only. `react-native link` sometimes can mess up this part, please remove duplicated packeges.