cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-2159) handleOpenURL not called on iOS
Date Fri, 11 Jan 2013 20:42:12 GMT

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

Shazron Abdullah commented on CB-2159:
--------------------------------------

The problem here is of timing. 

The sequence of events is:
1. Called: (BOOL)application:(UIApplication*)application handleOpenURL:(NSURL*)url
2. Called: (void)webViewDidFinishLoad:(UIWebView*)theWebView

We need to "queue up" the JavaScript write until later. The easy way is to just use a block
that is run after a delay for (1), but ideally we want to only run the JavaScript after (2)


                
> handleOpenURL not called on iOS
> -------------------------------
>
>                 Key: CB-2159
>                 URL: https://issues.apache.org/jira/browse/CB-2159
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.4.0
>
>
> Idan Gozlan from the ML:
> Ive noticed that handleOpenURL function not called when app is closed and launched by
the custom url.
> the function works alright when the app is in background.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message