| Start | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Set Up a Firebase Cloud Messaging Client App on Android Complete the [Installation and setup part](http://stackoverflow.com/documentation/android/3843/firebase/19049/add-firebase-to-your-android-project#t=201608180547233218048) to connect your app to Firebase. Now you are ready to work with the FCM in Android. FCM clients require devices running Edit your |
||||||||||||||||
| Receive Messages To receive messages, use a service that extends When the app is in the background, Android directs notification messages to the system tray. A user tap on the notification opens the app launcher by default. This includes messages that contain both notification and data payload (and all messages sent from the Notifications console). In these cases, the notification is delivered to the device's system tray, and the data payload is delivered in the extras of the intent of your launcher Activity. Here a short recap:
|
||||||||||||||||
| Registration token On initial startup of your app, the FCM SDK generates a registration token for the client app instance. The Example: |
||||||||||||||||
| This code that i have implemnted in my app for pushing image,message and also link for opening in your webView This is my FirebaseMessagingService And this is MainActivity to open link in my WebView or other browser depand on your requirement through intents. |
||||||||||||||||
| Subscribe to a topic Client apps can subscribe to any existing topic, or they can create a new topic. When a client app subscribes to a new topic name, a new topic of that name is created in FCM and any client can subsequently subscribe to it. To subscribe to a topic use the |
Read Article
https://develop.horje.com/learn/1434/reference