M-Elnemr / FireBase_Messaging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FireBase_Messaging

it's a show case application for sending and receiving firebase messaging notifications on android without backend (only firebase API)

  • subscribe to a topic
  • can send notification to a topic or a token

alt text

Major Steps

1- Create a Service that extends FirebaseMessagingService()

2- override onMessageReceived and onNewToken

3- don't forget to declare the service in the manifest file with that intent-filter

    <service android:name=".FireBaseService"
        android:exported="false">
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT"/>
        </intent-filter>
    </service>

About


Languages

Language:Kotlin 100.0%