You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/19 07:08:05 UTC

[GitHub] guolulu13204101 opened a new issue #122: Unable to obtain location information.

guolulu13204101 opened a new issue #122: Unable to obtain location information.
URL: https://github.com/apache/cordova-plugin-geolocation/issues/122
 
 
   phone:nubia NX569H
   android:6.0.1
   
   The execution method console.log no information.
   
    //定位
     public getGPS(){
       let that=this;
       this.geolocation.getCurrentPosition().then((resp) => {
         console.log(1,resp.coords.latitude,resp.coords.longitude);
       }).catch((error) => {
         console.log('Error getting location', error);
       });
   
     }
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org