La Min Ko created CB-11872:

             Summary: cordova.require is not a function in geolocation.js
                 Key: CB-11872
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin Geolocation
    Affects Versions: 6.3.1
         Environment: - Linux lmk-inspiron-3521 4.4.0-36-generic #55-Ubuntu SMP 
Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
- cordova 6.3.1
- node 5.10.0
- cordova-plugin-geolocation 2.3.0
            Reporter: La Min Ko
            Priority: Critical

When `navigator.geolocation.getCurrentPosition` was called, an exception raised 
`cordova.require` on geolocation.js. NOTE: `cordova` global object is 
accessible from console (developer tools).

geolocation.js:34 Uncaught (in promise) TypeError: cordova.require is not a 
win     @       geolocation.js:34
cordova.callbackFromNative      @       cordova.js:293
processMessage  @       cordova.js:1081
processMessages @       cordova.js:1104

getCurrentPosition: function(success, error, args) {
        var win = function() {
          var geo = 
'navigator.geolocation'); <------------------------ EXCEPTION RAISED
          geo.getCurrentPosition(success, error, args);
        var fail = function() {
            if (error) {
                error(new PositionError (PositionError.PERMISSION_DENIED, 
'Illegal Access'));
        exec(win, fail, "Geolocation", "getPermission", []);

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to