cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Wilson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-4970) geolocation.watchPosition blocks other plugins until you pause/resume
Date Tue, 01 Oct 2013 22:10:24 GMT

    [ https://issues.apache.org/jira/browse/CB-4970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13783408#comment-13783408
] 

Greg Wilson commented on CB-4970:
---------------------------------

This issue is iOS specific (ios6 and 7)

Symtoms (not connected to xcode - this is run directly from device):
1. run app first time - everything works ok (usually) -- watchPosition runs, clearWatch works,
camera and other plugins work as expected
2. kill app 
3. run app again - the app starts the watchPosition but it seems to hang and now camera and
other plugins won't work. The call to camera is ignored (see next step)
4. suspend app and then restart app - the camera dialog now appears without the user touching
anything.  The call to camera was somehow blocked until resume

The same thing happens with inAppBrowser and other plugins - calls are ignored, but then runs
on resume.

The issue seems specific to watchPosition.  It doesn't occur with getCurrentPosition.

This started in PhoneGap 3 - both with xcode 4 and xcode 5.

Greg

> geolocation.watchPosition blocks other plugins until you pause/resume
> ---------------------------------------------------------------------
>
>                 Key: CB-4970
>                 URL: https://issues.apache.org/jira/browse/CB-4970
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin Geolocation
>    Affects Versions: 3.0.0
>            Reporter: Shazron Abdullah
>             Fix For: 3.2.0
>
>
> Reported to me:
> "I've narrowed it down.  There is something weird about geolocation.watchPosition.  It
causes all other plugins to break sometimes.  I've switched to geolocation.getCurrentPosition
and now all is good.  
> Watchposition seems to block other plugins until you pause/resume
> This started in 3.0."
> Try calling the Camera plugin after the watchposition.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message