android - AppStateClient loadState retrieving null bytes -
in android app, elsewhere (definitely) firing off appstateclient.updatestateimmediate data in it. when callback onstateloaded fire afterward, incoming bytes null. & record, reaching onconnected ok. code looks this:
kick off load:
appstateclient.loadstate(this, 0); kick off save:
appstateclient.updatestateimmediate(this, 0, bytes); // bytes have content here respond onstateloaded:
@override public void onstateloaded(int statuscode, int statuskey, byte[] bytes) { // bytes null here, statuscode 7 aka developer error seeing in log cat:
07-18 09:11:09.402: e/volley(7866): [3530] ip.a: unexpected response code 403 https://www.googleapis.com/appstate/v1/states/0 07-18 09:11:09.472: e/volley(7866): [3530] ip.a: unexpected response code 403 https://www.googleapis.com/appstate/v1/states/0 07-18 09:11:09.482: e/loadstateop(7866): error executing operation: access not configured i went through whole app_id generation process on google api pages, , using integer portion. i've verified i'm using same sha1 debug.keystore eclipse uses oauth sha1 on google api , package name there matches <manifest package > tag.
what have missed? in advance
have configured androidmanifest.xml proper metadata?
<meta-data android:name="com.google.android.gms.appstate.app_id" android:value="@string/app_id" /> without you'll developer error.
Comments
Post a Comment