Note that there are some explanatory texts on larger screens.

plurals
  1. POAppStateClient loadState retrieving null bytes
    primarykey
    data
    text
    <p>In my Android App, elsewhere I am (definitely) firing off an <strong>appStateClient.updateStateImmediate</strong> with some data in it. But when the callback <strong>onStateLoaded</strong> finally does fire afterward, the incoming bytes are null. &amp; for the record, am reaching <strong>onConnected</strong> OK. Code looks like this:</p> <p>kick off load:</p> <pre><code>appStateClient.loadState(this, 0); </code></pre> <p>kick off save:</p> <pre><code>appStateClient.updateStateImmediate(this, 0, bytes); // bytes have content here </code></pre> <p>respond to onStateLoaded:</p> <pre><code>@Override public void onStateLoaded(int statusCode, int statusKey, byte[] bytes) { // bytes are null here, statusCode is 7 AKA developer error </code></pre> <p>Seeing this in log cat:</p> <pre><code>07-18 09:11:09.402: E/Volley(7866): [3530] ip.a: Unexpected response code 403 for https://www.googleapis.com/appstate/v1/states/0 07-18 09:11:09.472: E/Volley(7866): [3530] ip.a: Unexpected response code 403 for https://www.googleapis.com/appstate/v1/states/0 07-18 09:11:09.482: E/LoadStateOp(7866): Error executing operation: Access Not Configured </code></pre> <p>I went through the whole APP_ID generation process on the Google API pages, and am using just the integer portion. I've verified I'm using the same SHA1 from debug.keystore which eclipse uses as my OAuth SHA1 on the Google API and the package name there matches my &lt;manifest package &gt; tag.</p> <p>What have I missed? Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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