cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Kellgren (JIRA)" <>
Subject [jira] [Commented] (CB-7606) handleOpenURL handler firing more than necessary
Date Wed, 04 Mar 2015 09:24:05 GMT


Sebastian Kellgren commented on CB-7606:

[~shazron], Awsome that you are looking in to this!

But, seems like the fix for coldstart does not work for the ios@3.8.0.

I have tried to recreate your test case from above and it's not running as expected. The warm
start is firing the js handler as expected but not on the cold start. If i use version 3.6.0
everything fires as expected. I have also tried the exact steps as in your test branch and
getting the CB-7606 branch with git.  I don't know if this is related to a change in the tools
or something else.

I am very novice when it comes to ObjectiveC so i cant really tell you more in whats going

My environment looks like this
~/code/CB-7606/CB-7606 master
❯ cordova -v

❯ xcode -v
Version 6.1.1 (6A2008a)     

The code that i've tried can be found here

> handleOpenURL handler firing more than necessary
> ------------------------------------------------
>                 Key: CB-7606
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 3.5.0
>            Reporter: Paul Kane
>            Assignee: Shazron Abdullah
>             Fix For: 3.8.0
> I'm not an Obj-C or Cordova programmer so bear with me.
> Let's say my app is running. Then I hop over to my mail app and click on a link (myapp://blahBlahBlah)
that should open up my app. This works fine, the app opens, my own URL handler (in javascript)
takes over, etc.
> However in Obj-C the view controller is -- incorrectly, I believe -- storing that scheme
data (blahBlahBlah) in self.openURL (so that it can be picked up later in processOpenURL function,
called during webView initialization).
> This isn't normally a problem, except when you move to a new page (window.href = "/new_page"),
the webView initialization runs again and picks up the old (already-acted-upon) openURL variable.
(it's then set to nil, so that it doesn't get acted upon a third time, fourth time, etc...).
> I might have some details wrong, but it should be fairly easy to walk through with a
project-wide search for "openurl". Just seems like a slightly wrong logic-flow, which unfortunately
is interfering with my app.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message