cordova - Android GCM Service Works on One Tablet but not Other -


i've encountered weird issue in android application. i'm using jquery mobile , cordova 2.4 gcm plugin found here: https://github.com/marknutter/gcm-cordova

the odd part code works on nexus 7 running 4.2.2 on other, albeit worse, trio stealth pro tablet running 4.0.4, code not work @ all. receive no registration id gcm server when make request.

here javascript code making calls:

//cordova's deviceready callback function ondeviceready() { document.addeventlistener("backbutton", onbackkeydown, false);    //setup gcm messaging   usercontext.deviceready = true;   window.plugins.gcm.register(my_project_number, "gcm_event", gcm_success, gcm_fail); }  //called specified attribute in login.html <body onload="onload()"> function onload() {   document.addeventlistener("deviceready", ondeviceready, false);   document.addeventlistener("pause", function () {     unregistergcm();   },   false); } 

i recieve errors application starts after make registration call seem unrelated.

"call opengl es api no current context (logged once per thread)" 

why there disparate behavior between 2 tablets?

the trio stealth pro not ship google play store, , therefore not support gcm.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -