Google FCM push messaging - How does Android OS identify my app to forward push notification to the app
63 views
Skip to first unread message
Isaac Newton
unread,
Mar 30, 2023, 11:51:21 AM3/30/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Firebase Google Group
I am configuring push notification functionality in my Android app using Google FCM. I would like to understand how is push message routed within the device after it reaches the Android OS. Does Android OS use the registration token (described here: https://firebase.google.com/docs/cloud-messaging/manage-tokens) to identify my app and forward the message to the app, or does it instead rely on the unique application ID (the application package name, like com.example.myapp) (https://developer.android.com/studio/build/configure-app-module#set_the_application_id). In case it's based on the application ID, should my notification also contain the application ID (app package name)? Thank you in advance!