Skip to content Skip to sidebar Skip to footer

Testing Googles Firebase Notifications On Development Device Only

I am working on an android app where I want to be able to use the notification system within Firebase. I want to use the advanced features where I can add key/value pairs so that I

Solution 1:

You should choose single device choice on "send notification" screen. enter image description here

After that you should get your FCM registration token. Yo can get token via this app. https://play.google.com/store/apps/details?id=com.tune.mytunedevice

Write your token and send notification.

Solution 2:

You could create a new product flavor for your app (e.g. "development") (Configure Build Variants) and create a seperate firebase project (with a seperate google-services.json file) (Add multiple google-services.json files).

Then you have different API keys for each project which don't effect each other.

Solution 3:

You can get the FCM registration ID for those testing devices and send the message just for them, or create a topic/testing and register those devices to that topic then send the message just for this topic.

Post a Comment for "Testing Googles Firebase Notifications On Development Device Only"