meteor - How to find cordova app screen showing after starting activity with webintent? -
i using cordova webintent plugin in order launch location settings screen. how know app returned after
window.plugins.webintent.startactivity({action:'android.settings.location_source_settings'}, function(){console.log("gps settings screen showing now"); waitforgps();}, function(){console.log("unable show gps settings screen")});
and waiting recursive function
function waitforgps(){ checkgps.check(function(){ //gps enabled! ondeviceok(); }, function(){ //gps disabled! waitforgps(); }); }
usual cordova events pause , resume not fire when activity launched or closed. there alternative handle scenario as, if user not enables gps app struck in infinite loop.
Comments
Post a Comment