I encountered a tragic problem when calling the FCM API: In short When I call the API with the following:
URL:-https://fcm.googleapis.com/fcm/send Content-Type:application/json Authorization:key=AAAA4Kkj8iw:APA91bE......vE4Hxg { "condition" : "'Software' in topics", "data":{ "title":"Title", "message":"Hello,Via Multiple Topics" } }
It works Well, and I received a notification on the device from which I subscribed to the topic "Software", but when I switch to several topics and change the body to
{ "condition" : "'Software' in topics || 'IOT' in topics", "data":{ "title":"Title", "message":"Hello,Via Multiple Topics" } }
then I do not receive a notification I tested it on POSTMAN, it shows that a message has been sent, but I do not receive a notification on my device.
source share