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 2019/03/29 12:15:12 UTC

[GitHub] [cordova-plugin-geolocation] mntdragon opened a new issue #148: Geolocation - Error getting location Only secure origins are allowed

mntdragon opened a new issue #148: Geolocation - Error getting location Only secure origins are allowed
URL: https://github.com/apache/cordova-plugin-geolocation/issues/148
 
 
   # Bug Report
   
   ## Problem
   
   ### What does actually happen?
    this.geolocation.getCurrentPosition().then(response => {
     console.log(response);
   }).catch((error) => {
     console.log('Error getting location', error.message);
     alert(error);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
   });
   
   I got the error:  this.geolocation.getCurrentPosition().then(response => {
     console.log(response);
   }).catch((error) => {
     console.log('Error getting location', error.message);
     alert(error);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
   });
   
   And appears in alert Android: [object PositionErro]
   
   
   ## 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? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   
   
   ### Version information
   Ionic:
   
      ionic (Ionic CLI)  : 4.12.0 (C:\Users\Bonny\AppData\Roaming\npm\node_modules\ionic)
      Ionic Framework    : ionic-angular 3.9.2
      @ionic/app-scripts : 3.2.1
   
   Cordova:
   
      cordova (Cordova CLI) : 8.0.0
      Cordova Platforms     : android 7.0.0, browser 5.0.4, ios 4.5.5
      Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.4.0, (and 15 other plugins)
   
   System:
   
      Android SDK Tools : 26.1.1 (C:\Users\Bonny\AppData\Local\Android\Sdk)
      NodeJS            : v11.12.0 (C:\Program Files\nodejs\node.exe)
      npm               : 6.4.1
      OS                : Windows 10
   
   
   
   ## 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:
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