Luís Vieira created CB-7832:
-------------------------------

             Summary: iOS8 multiple initial calls to 
getCurrentPosition/watchPosition
                 Key: CB-7832
                 URL: https://issues.apache.org/jira/browse/CB-7832
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 3.6.3
         Environment: Testing on iOS8, iPhone4, using an IPA built with 
PhonegapBuild
            Reporter: Luís Vieira


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??



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to