GCM Error=MissingRegistration sending messages via JSON

前端 未结 4 937
你的背包
你的背包 2020-12-30 19:37

I\'m testing push GCM via Fiddler

Headers:

User-Agent: Fiddler
Authorization: key=AIzaSyAkXfcuLLCZ-5n18wwO6XeJ13g-z9ja
Host: android.googleapis.com
C         


        
4条回答
  •  死守一世寂寞
    2020-12-30 20:13

    You probably forgot to specify the content type in the header to be JSON.

    Content-Type: application/json
    

    If Content-Type is omitted, the format is assumed to be plain text.

    And for plain text the registration ID is passed in a parameter called registration_id instead of registration_ids, which explains your MissingRegistration error.

提交回复
热议问题