FirebaseCloudMessaging-Android/README.md

35 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2016-07-04 07:41:00 +00:00
# Firebase Cloud Messaging (FCM)
2016-06-22 12:54:20 +00:00
FCM is just a demo of Android Application which implement Firebase Cloud Messaging. It made for Google I/O Extended 2016 Bangkok
## Prerequisites
2019-04-16 08:30:00 +00:00
* Supported Android 4.1 or newer
* Android Studio 3.3.2 or higher
2016-07-22 08:49:42 +00:00
* google-services.json in app-level folder
2016-06-22 12:54:20 +00:00
## Features
2016-07-03 18:38:21 +00:00
* Subscribe and Unsubscribe with topics
2016-06-22 12:54:20 +00:00
* 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
2016-06-22 12:54:20 +00:00
## Limitation in the message payload
* Notification : 2KB limit and a predefined set of user-visible keys
* Data : 4KB of custom key-value pairs
## Screenshots
2016-07-04 07:44:28 +00:00
<table width="100%">
2016-06-22 12:54:20 +00:00
<tr>
2016-07-04 07:45:33 +00:00
<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>
2016-06-22 12:54:20 +00:00
</tr>
</table>
2016-06-27 03:46:14 +00:00
## Slide
```FCM
2016-06-23 17:48:08 +00:00
https://docs.google.com/presentation/d/1HPLk1PXaGUjqTlPB6RHsgrTunJNo10kbGZ-JX_7JELw/edit?usp=sharing
2016-06-22 12:54:20 +00:00
```