Ahhsan opened a new issue #199:
URL: https://github.com/apache/cordova-plugin-geolocation/issues/199


   # Bug Report
   
   ## Problem
   
   Something very strange is happening to me, If I run my app (in which I'm 
using this plugin) directly it doesn't works, but just before launching my app, 
If I run google maps and locate my self, then run my app again it works without 
any issue, otherwise it keep falling into error method of  `getCurrentPosition` 
method
   ### What is expected to happen?
   
   
   
   ### What does actually happen?
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   `
      
this.locationAccuracy.request(this.locationAccuracy.REQUEST_PRIORITY_HIGH_ACCURACY).then(()
 => {
           Geolocation.getCurrentPosition({ enableHighAccuracy: true 
}).then(loc => {
             alert('Position detected successfully' + loc.coords.accuracy);
           }).catch(err => {
             alert(err);
           });
         }).catch(deny => {
           alert('You denied the location');
         });
   `
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   Oneplus 3T
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to