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
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
Post a Comment