FirebaseCloudMessaging-Android/README.md
Jirawat Karanwittayakarn 80c836de85 Update README.md
2019-04-16 15:30:00 +07:00

35 lines
1.3 KiB
Markdown

# Firebase Cloud Messaging (FCM)
FCM is just a demo of Android Application which implement Firebase Cloud Messaging. It made for Google I/O Extended 2016 Bangkok
## Prerequisites
* Supported Android 4.1 or newer
* Android Studio 3.3.2 or higher
* google-services.json in app-level folder
## Features
* Subscribe and Unsubscribe with topics
* Get token
* Send message with payload both **notification** and **data**
* Send message with **a token**, **token group**, **a topic**, **condition**
* Handle message both **foreground** and **background**
* Customize notification
* Support notification channel for Android 0 or newer
## Limitation in the message payload
* Notification : 2KB limit and a predefined set of user-visible keys
* Data : 4KB of custom key-value pairs
## Screenshots
<table width="100%">
<tr>
<th width="33%"><img src="https://cloud.githubusercontent.com/assets/1763410/16547014/9f81c04a-4187-11e6-936c-0d901d91b8e5.png"></th>
<th width="33%"><img src="https://cloud.githubusercontent.com/assets/1763410/16553886/8f8af5da-41f5-11e6-85c4-cb6937c80bab.png"></th>
<th width="33%"><img src="https://cloud.githubusercontent.com/assets/1763410/16553891/97fa1d18-41f5-11e6-9f53-e76a61e9b435.png"></th>
</tr>
</table>
## Slide
```FCM
https://docs.google.com/presentation/d/1HPLk1PXaGUjqTlPB6RHsgrTunJNo10kbGZ-JX_7JELw/edit?usp=sharing
```