mirror of
https://github.com/Xtao-Labs/FirebaseCloudMessaging-Android.git
synced 2025-01-30 15:08:38 +00:00
01bd71560b
- gradle-plugin: 3.3.2 - gradle-wrapper: 5.3.1 - firebase-core: 16.0.8 - firebase-messaging: 17.6.0 |
||
---|---|---|
app | ||
gradle/wrapper | ||
.gitignore | ||
build.gradle | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
README.md | ||
settings.gradle |
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.0 (Ice cream) or newer
- Firebase Messaging 17.6.0 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
Slide
https://docs.google.com/presentation/d/1HPLk1PXaGUjqTlPB6RHsgrTunJNo10kbGZ-JX_7JELw/edit?usp=sharing