Android Question GCM not sending message 401 error

Smee

Well-Known Member
Licensed User
Longtime User
Sorry i posted this in the tutorial section. I will remove it now

Hi Erel,

Just testing the example on the GCM tutorial. i have not been active for some time and i have made some rookie mistakes.

I installed the example to the device and ran it. I got the successful message
I ran the batch file and got the 401 http error.
Went back and re-read instructions & noticed that i had not updated the SenderId field
Made the change and recompiled\run
Got an error "INVALID_SENDER"
Tried using another identifier but no joy
Changed the SenderId to the 12 digit number
Made the change and recompiled\run
got the successful message
Checked the API Key - correct see pics
ran the batch file again and got the 401 http error again

Where do i go from here?
Attached Files:
 

Smee

Well-Known Member
Licensed User
Longtime User
(Don't use notepad. You should use a decent text editor like Notepad++ instead)

Have you enabled GCM in the APIs list?

Yes i should do - bugger

That was it. Don't know how i missed it.

Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…