Is it mandatory to check app's package name before creating a notification for cloud message

After receiving a cloud message do we need to check the package name to make sure if it is addressed to our package name, If so how can we access the package name from the received cloud message.

I followed this doc to code the broadcast receiver class ,it does not mention anything regarding this.

Actually, you don’t need to. We have one message that gets broadcasted to all apps, but we are going to fix it on our side. Your app will only be receiving cloud messages intended for your app.

1 Like

Thanks @dennis :smile: