Testing Googles Firebase Notifications On Development Device Only
Solution 1:
You should choose single device choice on "send notification" screen.
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"