Bad Request [400], Fcm Legacy Http Api With Retrofit
URL = https://fcm.googleapis.com/fcm/send Request Body { 'registration_ids': ['token 1','token 2'], 'priority': 'high', 'notification': { 'title': 'Divine Public School', 'body': '
Solution 1:
Not an appropriate solution but made an end-point in my existing Node project. Any one having this issue can use this. URL https://pankaj-oil-api.herokuapp.com/notify
You need to post this object on above url. "registration_ids" is a string array that can have minimum 1 and maximum 1000 tokens.
{"registration_ids":["Client Token 1","Client Token 2"],"serverKey":"<Your (Authorization) Server Key Here>","title":"<Enter your Notification Title here >","msg":"<Enter your Notification Message here >"}
This is just a temporary solution . Still looking for a solution.
Post a Comment for "Bad Request [400], Fcm Legacy Http Api With Retrofit"