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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -