Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle CCS (GCM) - project not whitelisted
    text
    copied!<p>I'm trying to get the Python code working that I found on: <a href="http://developer.android.com/google/gcm/ccs.html">http://developer.android.com/google/gcm/ccs.html</a> I've change the first 2 rows with (I think) the correct data. The projectnr and api key is fake, it's just to show you how it almost looks.</p> <pre><code>import sys, json, xmpp SERVER = ('gcm.googleapis.com', 5235) USERNAME = '489713985816' PASSWORD = 'AIzd237jjN_iT7yRxLWiHRreqax45XaMJQ6VJ98' </code></pre> <p>I've created a google api project (tried it with 2 different projects). Activated GCM. Copied the following: Project Number: 489713985816 API key : AIzd237jjN_iT7yRxLWiHRreqax45XaMJQ6VJ98 Tried the code with a Key for server, and a key for browser apps, both with and without a specific IP address.</p> <p>When I execute the code with #python ccs.py I get the following result: If this is my problem, how do I get my project whitelisted?</p> <pre><code>Invalid debugflag given: socket DEBUG: DEBUG: Debug created for /usr/lib/python2.7/dist-packages/xmpp/client.py DEBUG: flags defined: socket DEBUG: socket start Plugging &lt;xmpp.transports.TCPsocket instance at 0x1ea2950&gt; into &lt;xmpp.client.Client instance at 0x1ea27a0&gt; DEBUG: socket start Successfully connected to remote host ('gcm.googleapis.com', 5235) DEBUG: socket sent &lt;?xml version='1.0'?&gt; &lt;stream:stream xmlns="jabber:client" to="gcm.googleapis.com" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" &gt; DEBUG: socket got &lt;stream:stream from="gcm.googleapis.com" id="FD82304ADA8C8019" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client"&gt; &lt;stream:features&gt; &lt;mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&gt; &lt;mechanism&gt;X-OAUTH2&lt;/mechanism&gt; &lt;mechanism&gt;X-GOOGLE-TOKEN&lt;/mechanism&gt; &lt;mechanism&gt;PLAIN&lt;/mechanism&gt; &lt;/mechanisms&gt; &lt;/stream:features&gt; DEBUG: socket sent &lt;auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN"&gt;MjgzMVqTl9p\nVDdUTZWSjk4\n&lt;/auth&gt; DEBUG: socket got &lt;failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&gt; &lt;temporary-auth-failure/&gt; &lt;text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"&gt; Project 489713985816 not whitelisted.&lt;/text&gt; &lt;/failure&gt; &lt;/stream:stream&gt; Authentication failed! </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload