Hi, when creating a message i am getting a mismatch warning

1)the google project number in your app isn't the one in google console. 2)the api key in youre control panel isn't the same as you got in google console. 3)the api key doesnt work properly. try to change browser key with a server key..

I have put the server key in the pushwoosh API key

step 1: /registerDevice

post https://cp.pushwoosh.com/json/1.3/registerDevice
{
  "request": {
      "application": "8A2BB-6FB4C",
      "push_token": "XXXXXXXXXXXXXXXXXXXXXXXXX",
      "language": "en",
      "hwid": "39FFF03812858AD5",
      "device_type": 3
  }
}
// result - status 200

step 2: /createMessage

post https://cp.pushwoosh.com/json/1.3/createMessage
{
    "request": {
        "application": "8A2BB-6FB4C",
        "auth": "YYYYYYYY",
        "notifications": [
            {
                "send_date": "now",
                "ignore_user_timezone": true,
                "content": "SHAY Hello world XXX!",
                "devices": [
                    "39FFF03812858AD5"
                ]
            }
        ]
    }
}
//result - status 200
asked 05 May '16, 07:40
ShayHk's gravatar image

ShayHk
112

Hi!

Have you checked whether the GCM Number is correct?

Also, may I ask you whether you've tried using Browser key instead of Server key?

permanent link
answered 06 May '16, 07:56
Nikolai's gravatar image

Nikolai
3585

no i have only checked only the server key. the key is an production key and i cant change it.

(08 May '16, 12:52) ShayHk ShayHk's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×326
×83
×76
×52
×7

question asked: 05 May '16, 07:40

question was seen: 751 times

last updated: 08 May '16, 12:52