whitelist - Google CCS (GCM) - project not whitelisted -


i'm trying python code working found on: http://developer.android.com/google/gcm/ccs.html i've change first 2 rows (i think) correct data. projectnr , api key fake, it's show how looks.

import sys, json, xmpp server = ('gcm.googleapis.com', 5235) username = '489713985816' password = 'aizd237jjn_it7yrxlwihrreqax45xamjq6vj98' 

i've created google api project (tried 2 different projects). activated gcm. copied following: project number: 489713985816 api key : aizd237jjn_it7yrxlwihrreqax45xamjq6vj98 tried code key server, , key browser apps, both , without specific ip address.

when execute code #python ccs.py following result: if problem, how project whitelisted?

invalid debugflag given: socket debug:  debug: debug created /usr/lib/python2.7/dist-packages/xmpp/client.py debug: flags defined: socket debug: socket       start plugging <xmpp.transports.tcpsocket instance @ 0x1ea2950>      <xmpp.client.client instance @ 0x1ea27a0> debug: socket       start connected remote  host ('gcm.googleapis.com', 5235) debug: socket       sent  <?xml version='1.0'?> <stream:stream xmlns="jabber:client" to="gcm.googleapis.com" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" > debug: socket       got    <stream:stream from="gcm.googleapis.com" id="fd82304ada8c8019" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"> <stream:features> <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"> <mechanism>x-oauth2</mechanism> <mechanism>x-google-token</mechanism> <mechanism>plain</mechanism> </mechanisms> </stream:features> debug: socket       sent  <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="plain">mjgzmvqtl9p\nvddutzwsjk4\n</auth> debug: socket       got <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"> <temporary-auth-failure/> <text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"> project 489713985816 not whitelisted.</text> </failure> </stream:stream> authentication failed! 

you might wan't try following guide http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/

i having same problem following guide has helped me push notifications through without having sign whitelisted.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -