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

Geolocation does not work properly on iOS 4 and below

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 1.0.0, 1.1.0, 1.2.0, 1.6.0, 1.7.0
    • Fix Version/s: None
    • Component/s: cordova-ios
    • Labels:
    • Environment:

      iPod Touch, iPhone 4

      Description

      navigator.geolocation.getCurrentPosition does not work on iOS 4.3 and below, but works perfectly fine on iOS 5 and Android. Location service and WIFI were enabled on device but returned location update failed.

      function onSuccess()

      { console.log('location acquired'); }

      function onFailure()

      { console.log('location not found'); }

      navigator.geolocation.getCurrentPosition(onSuccess, onFailure,

      { enableHighAccuracy: true }

      );

        Attachments

          Activity

            People

            • Assignee:
              shazron Shazron Abdullah
              Reporter:
              aar0n Aaron Hii
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: