Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7043 iOS 8 Support
  3. CB-7832

[iOS8][Geolocation] multiple initial calls to getCurrentPosition/watchPosition

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.6.3
    • None
    • None
    • Testing on iOS8, iPhone4, using an IPA built with PhonegapBuild

    Description

      In iOS8, when the App first calls getCurrentPosition or watchPosition a popup is shown for the user to allow the App to retrieve location information.
      If we call getCurrentPosition and watchPosition concurrently, the first call callbacks wait for the user's response but the second call immediately fails. So even if the user gives the App permission to retrieve location information, only the first call succeeds. This forces the App to hang all calls to the Geolocation API on the callbacks of the first call.
      Shouldn't the API guarantee that all calls wait for the user's response, before returning success or failure??

      Attachments

        Activity

          People

            Unassigned Unassigned
            oheavy Luís Vieira
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: