adeel399 opened a new issue, #273:
URL: https://github.com/apache/cordova-plugin-geolocation/issues/273

   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   Geolocation should give current location in all android devices 
   
   
   ### What does actually happen?
   but it is working in many devices except android 12 there is no error msg at 
all function does not even call 
   
   
   ## 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.geolocation.getCurrentPosition().then(async (resp:any) => {
               
               this.lat=resp.coords.latitude;
               this.long=resp.coords.longitude;
               alert("lat:"+this.lat+"long"+this.long);
               }).catch((error:any) => {
                console.log('Error getting location', error);
                alert("location error:"+error);
              });
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   Android 12 ionic capacitor
   
   
   ### Version information
   <!-- 
   
   Operating System, Android Studio
   "cordova-plugin-geolocation": "^4.1.0",
   "@awesome-cordova-plugins/geolocation": "^6.3.0",
   -->
   
   
   
   ## 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.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to