Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7528

Cordova geolocation executes on a device which already has HTML5 geolocation implementation

    XMLWordPrintableJSON

Details

    Description

      From the spec https://github.com/apache/cordova-plugin-geolocation/blob/master/doc/index.md

      It says :
      "This API is based on the W3C Geolocation API Specification, and only executes on devices that don't already provide an implementation. "

      But this is not true now (tested on android tablet OS 4.4.2 ). It used to be true for Cordova 2.9.0 .

      I found the difference is :
      1. Cordova 2.9.0 , it uses "defaults" to map module
      https://github.com/apache/cordova-js/blob/2.9.x/lib/common/plugin/geolocation/symbols.js#L24

      2. Cordova latest version, it uses "clobbers" to map module .
      https://github.com/apache/cordova-plugin-geolocation/blob/master/plugin.xml#L60

      I see the Cordova geolocation implementation is removed on android platform, shouldn't do on amazon-fireos as well ?

      Attachments

        Activity

          People

            naika Archana Naik
            xuluni xuluni
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: