Buradasın
Firebase Cloud Messaging Overview and Implementation
medium.com/android-dev-hacks/firebase-cloud-messaging-772c9680c97eYapay zekadan makale özeti
- History and Features
- GCM was Google's mobile notification service launched in 2012
- FCM is a free, cross-platform messaging solution replacing GCM
- FCM delivers hundreds of billions of messages daily with 95% delivery in 250ms
- Offers advanced message targeting and customizable notification content
- Implementation Steps
- Register app in Firebase console and download google-services.json
- Add Firebase SDK dependencies to app-level build.gradle
- Configure app manifest file for notification handling
- Access device registration token for message delivery
- Create custom FcmMessageService class for notification handling
- Testing and Usage
- Test implementation on device before publishing to Firebase console
- Send messages through Firebase console with optional data fields
- Monitor token refresh in onNewToken method
- Use Firebase Console to send test notifications