After spending several hours, I found that in Postman you should put the following in the headers.
Key: Content-Type Value: application/json Key: Authorization Value: key=AAAAfnYrKvU:APA91bFwgeM3zuFId6UDzvIHk9qZ3lKHnX-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (Firebase Cloud Messaging token)
Then click "Body" and select "Raw", here you will add json.
{ "data": { "title": "new messages", "score": "5x1", "time": "15:10" }, "to": "/topics/alldevices" }
I also found that you cannot send all devices excluding "to": you will need to subscribe to the theme of your application. In my case, I signed up for alldevices.
Now I can send "to": "/ themes / alldevices" and all applications will receive a notification.
source share