Skip to content

Notification support

Brownk15 edited this page Nov 3, 2023 · 4 revisions

Prerequisites

  • 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 later
  • compileSdkVersion 28 or later
  • Set up a physical device or emulator to run app
  • Sign into Firebase

Connecting to Firebase

Option 1 (recommended)

Note: This will involve using the Firebase console and the Android project.

  1. Create a Firebase project
  2. 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'
  1. 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
  1. 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
Clone this wiki locally