Android News App
  • Welcome
  • Android Studio
    • Getting Started
    • Import Project
    • Generate google-services.json
    • Push Notification
    • Package Name
    • Server Connection
    • Ad Network
    • Legacy GDPR
    • Funding Choices
    • App Configuration
    • Get YouTube API Key
    • Change App Logo
    • Change App Color
    • Text Assets
    • Image Assets
    • App Font
  • Admin Panel
    • Getting Started
    • Database Configuration
    • Related Video Tutorial
    • SMTP Config
    • Change Color
    • Change Text
  • Publish the App
    • Release Version
    • Generate Signed Bundle / APK
  • Migrate from Older Version
    • v4.2.1 to v4.3.0
    • v4.2.0 to v4.2.1
    • v4.0.0 to v4.2.0
    • v3.4.x to v4.0.0
  • Rating and Support
  • Changelog
  • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. Android Studio

Push Notification

PreviousGenerate google-services.jsonNextPackage Name

Last updated 3 years ago

Was this helpful?

We provide 2 providers to send notification messages : FCM and OneSignal, FCM configuration is required and has been explained in the previous step by replacing google-services.json with yours, then OneSignal setup is optional.

FIREBASE CLOUD MESSAING (FCM)

Server Key

Firebase provides Server API Key to identify your firebase app. To obtain your Server API Key, go to firebase console, select the project and go to settings, select Cloud Messaging tab and copy your Server key.

FCM Notification Topic

  • In the latest updated version starting from version 4.3 or higher, notifications are received based on subscribed topics, so, the FCM token will not be stored in the database and no longer used.

  • Notification topic name is determined by you, the notification topic must be written in lowercase without space (use underscore), e.g : android_news_app_topic

Login to your Admin Panel, navigate to Settings menu and put your FCM Server Key and FCM Notification Topic.

ONESIGNAL

Required For Setup

  • A device or emulator that has Google Play services installed and updated on it (Device will not subscribe or receive push notifications with out this).

Keys & IDs Setup

  • Login to your OneSignal Account and select your app

  • Select SETTINGS > Keys & IDs to get your OneSignal APP ID and REST API KEY

  • Login to your Admin Panel, navigate to Settings menu and put your OneSignal APP ID and OneSignal REST API KEY.

A , if you do not already have one

Your OneSignal App ID, available in

OneSignal Account
Keys & IDs
A Google/Firebase Server API Key