Login

Learning & Support

Documentation

Android: Setting up Firebase Push Notifications

Twixl Support Team Updated: - Created :

    1. Get Started

    1. Go to https://console.firebase.google.com/
    2. Signin with a Google Account

    TIP:

    If you login with a Google Account that is linked to a Google Play Developer account, you can link your Firebase Projects (and apps) more easily to your Android apps in the Google Play Developer Console. However, this is not a requirement to setup your Push Notifications for a Twixl app.

    2. Add a Project

    1. Click on Add Project.
    2. Choose a Project Name (e.g. the name of your app: My Magazine). You can also choose an existing Project to setup Firebase for.
    3. Choose a Project ID or accept the proposed one.

    3. Setup your Firebase Project

    1. Click on the Gear icon next to 'Project Overview'
    2. Select Project Settings.
    3. Select the tab Cloud Messaging.
    4. Copy the value Server Key: it needs to be entered on the Twixl platform

    ABOUT FIREBASE ANDROID AND IOS APPS:

    In Firebase, you can setup an Android and/or iOS app. For Twixl apps, it is not necessary to create an iOS app here.

    4. Generate your Android JSON file

    1. In Project Settings, select the General tab.
    2. Add an Android app.
    3. Fill in the Android package name (a reverse DNS name like com.mycompany.myapp), and optionally specify an App nickname.
    4. Click Register to continue.
    5. Download the google-services.json file and save this file. You'll need it in your build setting on the platform.

    5. Enter API Server Key on the platform

    1. Go to the detail view of your app on the Twixl platform, then select Notifications from the top menu.
    2. Now paste the API Server Key in the correct field.

    6. Add google-service.json to build setting

    In the build setting for your app on the platform, select the google-services.json file from Step 4 to add it.

    Build Setting

    7. Build your app

    You have now configured push notifications for Android and are ready to create the build of your app.

    Was this article helpful?

    0 out of 0 found this helpful