android - Restricting FCM topic subscription based on APK signing -


i have android app subscribes fcm topic named ("alert")....

i want signed,published version of app google play store receive messages "alert" topic. not want unsigned/debug apk developer creates same package name able subscribe topic receive notifications, if unsigned/debug version has google-services.json configuration. possible configure fcm topic restrict access published app google play store?

i thought possible configuring api key used in app https://console.developers.google.com/apis/credentials, , specifying key restriction android apps, , specify package name , sha1 signing certificate used app...but seems if this, unsigned/debug version of app still able subscribe topic , receive messages.

there no way restrict users subscribe topic.

fcm topics public. there no way prevent specific users subscribing them -- in case, users or app versions. long authorized make request , know name of topic, subscribe.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -