Gradle Configuration
The React Native auto-linking will handle most of the Android setup. However, you need to ensure the following:- Set minimum SDK version in
android/build.gradle:
- Add Maven repositories in
android/build.gradle:
Firebase Cloud Messaging Setup
To enable Firebase Cloud Messaging (FCM) for push notifications on Android:-
Add Firebase to your project:
- Go to Firebase Console
- Add your Android app
- Download
google-services.jsonand place it inandroid/app/
-
Add Google Services plugin in
android/build.gradle:
- Apply the plugin in
android/app/build.gradle:
- Configure FCM in the SDK (shown in the initialization section below).