1

I tried to send request to FCM/firease Cloud Messaging for push notification to android device but every time in get ("MissingRegistration"). I can't the correct format of json to push notification. This is the json format how I Sent

{ "registration_ids": [ "/*FirebaseInstanceId.getInstance().getToken()*/" ]   , "notification" : { "title": "Portugal vs. Denmark" , "text": "5 to 1" }   }

I need for all any a idea.

Zaher88abd
  • 448
  • 7
  • 20

2 Answers2

0

Go through this link

Or try this json format :--

{ "registration_ids": [ "/*FirebaseInstanceId.getInstance().getToken()*/" ], "data": {"contentTitle":"content title GCM", "message": "some test message"}}
R C
  • 461
  • 4
  • 17
0

I Found solution for this problem in this link. By using anonymous types then convert it to Json by JavaScriptSerializer.

Community
  • 1
  • 1
Zaher88abd
  • 448
  • 7
  • 20