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/06/17 15:28:07 UTC

[GitHub] [cordova-plugin-geolocation] fax1ty opened a new issue #157: TypeError: Cannot read property 'getCurrentPosition' of undefined

fax1ty opened a new issue #157: TypeError: Cannot read property 'getCurrentPosition' of undefined
URL: https://github.com/apache/cordova-plugin-geolocation/issues/157
 
 
   # Bug Report
   ### What is expected to happen?
   I wanted to get the data
   
   
   ### What does actually happen?
   ```
   Error in Success callbackId: Geolocation1100061559 : TypeError: Cannot read property 'getCurrentPosition' of undefined
    
   processMessage failed: Error: TypeError: Cannot read property 'getCurrentPosition' of undefined
    
   processMessage failed: Stack: TypeError: Cannot read property 'getCurrentPosition' of undefined
   at win (./plugins/cordova-plugin-geolocation/www/android/geolocation.js:35:16)
   at Object.callbackFromNative (./cordova.js:291:58)
   at processAndroidEvent (./cordova.js:986:17)
   at _class.<anonymous> (./cordova.js:1005:9)
   at ./node_modules/tabris/tabris.min.js:1:27083
   at _class.trigger (./node_modules/tabris/tabris.min.js:1:27247)
   at _class.$trigger (./node_modules/tabris/tabris.min.js:1:63505)
   at _class._trigger (./node_modules/tabris/tabris.min.js:1:63275)
   at Tabris._notify (./node_modules/tabris/tabris.min.js:1:70355)
    
   processMessage failed: Message: S01 Geolocation1100061559 sOK
   ```
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Code
   ```typescript
    navigator.geolocation.getCurrentPosition(position => console.log(position), e => console.error(e));
   ```
   
   ``` console.log(navigator.geolocation);``` returns the following
   ```js
   { getCurrentPosition: [Function: getCurrentPosition],
   watchPosition: [Function: watchPosition],
   clearWatch: [Function: clearWatch] }
   ```
   
   ### Version information
   Cordova: Cordova 8.1.2, [cordova-plugin-geolocation](https://github.com/apache/cordova-plugin-geolocation/) - master branch
   Other Frameworks: [Tabris.js](https://github.com/eclipsesource/tabris-js/)
   Android 8.1.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.
 
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