-
Notifications
You must be signed in to change notification settings - Fork 2
Notification support
Brownk15 edited this page Nov 3, 2023
·
4 revisions
- Android Studio must be updated to latest version
- Project must have these requirements:
- Targets API level 19 (KitKat) or higher
- Uses Android 4.4 or higher
- Uses Jetpack (AndroidX), which includes these requirements:
com.android.tools.build:gradle
v7.3.0 or latercompileSdkVersion
28 or later
- Set up a physical device or emulator to run app
- Sign into Firebase
Note: This will involve using the Firebase console and the Android project.
- Create a Firebase project
- Register app with Firebase
- In Firebase console, click on Android icon or 'Add app' to launch setup
- Enter app's package name in 'Android package name' field
- Optional - Add app nickname and debug signing certificate SHA-1
- Click 'Register app'
- Add a Firebase configuration file
- Download and add Firebase Android configuration file (
google-services.json
) to app- Move config file into module root directory of the app
- Ensure Google services Gradle plugin is added as a dependency (usally in
<project>/build.gradle.kts
or<project>/build.gradle
)- In the app-level Gradle file (will usually be in
<project>/<app-module>/build.gradle.kts
or<project>/<app-module>/build.gradle
- Add Firebase SKDs to app
- In the app-level Gradle file, add the appropriate Firebase project dependencies
- After adding the dependencies, sync Android project with Gradle files