javascript - Kendo UI Mobile not working on Phonegap Emulator -


i want use phonegap emulator test app uses kendo ui mobile. kendo ui initialized when test on real devices ,still geolocation onsuccess method never called, on phonegap emulator can not see kendo ui being initialized. please me run app

var myapp = myapp || {}; myapp.onsuccess = (function(position) {     var mylocation = new google.maps.latlng(position.coords.latitude, position.coords.longitude);     map  = new google.maps.map(document.getelementbyid('map_canvas'), {     maptypeid: google.maps.maptypeid.roadmap,     center: mylocation,     zoom: 15 });  });   myapp.onerror = (function(error)  {   alert("error initializing map")  });   myapp.run = (function() { // create kendo ui mobile application    alert("kendo initialized");    myapp.app = new kendo.mobile.application(document.body, { transition: "slide" });    navigator.geolocation.getcurrentposition(myapp.onsuccess, myapp.onerror);  });   myapp.show = (function() {   $(document.body).show(); });      (function() { if (navigator.useragent.indexof('browzr') > -1) {     // blackberry     settimeout(myapp.run, 250) } else {     // attach deviceready event, fired when phonegap go.       document.addeventlistener('deviceready', myapp.run, false);       alert("hello") } })(); 


Comments