How soummo19/androidnotificationreceiver works
This Android app lets a user inspect and refresh Firebase registration details, while receiving push messages and showing them both in the UI and as local notifications. MainActivity is the user-facing entry point; the Firebase messaging service handles incoming messages and token callbacks, NotificationRepository holds observable in-memory state and fetches Firebase identifiers, and NotificationHelper manages notification channels and banners. The excerpts establish these principal calls. Theme files are included as a UI layer; unsampled manifest wiring and UI state-observation details are not inferred.
Main entry points: MainActivity.kt Main activity and screen · NotificationRepository.kt Notification state and fetches · MyFirebaseMessagingService.kt FCM message service · Theme.kt Compose theme
Components 11
App interface
- Main activity and screen
app/src/main/java/com/soumyadeep/androidnotificationreceiver/MainActivity.kt
Message handling
- FCM message service
app/src/main/java/com/soumyadeep/androidnotificationreceiver/MyFirebaseMessagingService.kt - Notification helper
app/src/main/java/com/soumyadeep/androidnotificationreceiver/NotificationHelper.kt
Firebase state
- Notification state and fetches
app/src/main/java/com/soumyadeep/androidnotificationreceiver/NotificationRepository.kt
UI presentation
- Compose theme
app/src/main/java/com/soumyadeep/androidnotificationreceiver/ui/theme/Theme.kt - Theme colors
app/src/main/java/com/soumyadeep/androidnotificationreceiver/ui/theme/Color.kt - Theme typography
app/src/main/java/com/soumyadeep/androidnotificationreceiver/ui/theme/Type.kt
Other components
- App user
- Firebase Messaging
- Firebase Installations
- Android notifications
Connections 12
- App user → Main activity and screen: opens
app/src/main/java/com/soumyadeep/androidnotificationreceiver/MainActivity.kt - Main activity and screen → Compose theme: renders with
app/src/main/java/com/soumyadeep/androidnotificationreceiver/MainActivity.kt - Main activity and screen → Notification state and fetches: fetches and refreshes
app/src/main/java/com/soumyadeep/androidnotificationreceiver/MainActivity.kt - Main activity and screen → Notification helper: creates channel
app/src/main/java/com/soumyadeep/androidnotificationreceiver/MainActivity.kt - Compose theme → Theme colors: uses palette
app/src/main/java/com/soumyadeep/androidnotificationreceiver/ui/theme/Theme.kt - Compose theme → Theme typography: uses styles
app/src/main/java/com/soumyadeep/androidnotificationreceiver/ui/theme/Theme.kt - Firebase Messaging → FCM message service: delivers callbacks
- FCM message service → Notification state and fetches: updates state
app/src/main/java/com/soumyadeep/androidnotificationreceiver/MyFirebaseMessagingService.kt - FCM message service → Notification helper: shows message
app/src/main/java/com/soumyadeep/androidnotificationreceiver/MyFirebaseMessagingService.kt - Notification state and fetches → Firebase Messaging: fetches tokens
app/src/main/java/com/soumyadeep/androidnotificationreceiver/NotificationRepository.kt - Notification state and fetches → Firebase Installations: fetches ID
app/src/main/java/com/soumyadeep/androidnotificationreceiver/NotificationRepository.kt - Notification helper → Android notifications: creates and posts
app/src/main/java/com/soumyadeep/androidnotificationreceiver/NotificationHelper.kt