android - Searching for registered device... (Cloud Endpoints Starter Template) -


i'm .net developer , new android. have written android application utilize sqlite data storage. connect application google cloud backend. have followed instruction create app engine connected android project. i'm using samsung note2 test. on device, registered gcm , endpoints server, when go web site http//localhost:8888/ test, unable find device. display "searching registered device..." see picture.

can point me doing wrong , how can correct it, cloud endpoints see device? thank help.

regards,

tim

enter image description here

i came across same problem. here understood before trying resolve issue. - go yourproject-appengine-->war-->index.html

this html file loaded when go localhost:8888. inside code of html file. there few javascript methods being called here. out 2 methods

 // method loads deviceinfoendpoint , messageendpoint libraries  function loadgapi() {  gapi.client.load('deviceinfoendpoint', 'v1', function() {    updateregistereddevicetable();  });   gapi.client.load('messageendpoint', 'v1', function() {});  } 

and

function generateregdevicetable(deviceinfoitems) 

these 2 methods job of getting registered devices datastore , display on html page. can play around html file debug reason. in case reason backend libraries not registered. when creating own entities , using them displayed in index.html works fine. gcmendpoint libraries come default when install gpe , enabled backend engine. hence redo process , manually register libraries , error should gone.


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 -