当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Firebase API call with multiple topics in condition

问题描述:

I am facing a tragic issue while calling FCM API:-

In brief When I am calling the API with 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 Fine and I got the notification on device from which I have subscribed to topic "Software", But when I go for multiple topics and change the body to

{

"condition" : "'Software' in topics || 'IOT' in topics",

"data":{

"title":"Title",

"message":"Hello,Via Multiple Topics"

}

}

then I don't get the notification

I have tested it on POSTMAN it shows that message was sent but I don't receive any notification on my device.

分享给朋友:
您可能感兴趣的文章:
随机阅读: