Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS9 - Tries to hit fallback link every time from Safari (Chrome works fine) #64

Closed
gabaum10 opened this issue Mar 10, 2016 · 9 comments

Comments

@gabaum10
Copy link

This may be a configuration problem on my end, but I can't be sure, especially with all the iOS issues I've run into over the past few weeks using branch. In iOS9 the plugin seems to try and install the app every single time. I can't seem to isolate which side it's coming from; the mapping on the branch side or something with the plugin.

I've got everything set up in my config file for universal links since custom URLs are no longer supported in iOS9:

    <!-- Branch.io universal links -->
    <gap:plugin name="branch-cordova-sdk" source="npm">
        <param name="BRANCH_LIVE_KEY" value="@BRANCH_LIVE_KEY@" />
        <param name="URI_SCHEME" value="@URL_SCHEME@" />
    </gap:plugin>
    <gap:plugin name="cordova-universal-links-plugin" source="npm" />
    <universal-links>
        <ios-team-id value="@TEAM_ID@" />
        <host name="bnc.lt"></host>
    </universal-links>

The URL_SCHEME matches what I have configured in the branch.io dashboard. The links are working correctly in iOS8 and below. There are no errors.

Also, the same setup is working on Android perfectly. This might be a setup issue but since the plugin seems to be working right on Android so I thought it might be the plugin.

@gabaum10 gabaum10 changed the title iOS - Tries to install the app every time iOS9 - Tries to install the app every time Mar 10, 2016
@gabaum10
Copy link
Author

Also, to clarify a little more, my branch.io configuration is linking to an ipa file hosted by phonegap build after it finishes building it. This is just for development purposes.

Somehow the plugin is not detecting the app is already installed on the device and trying to install it again. I've verified that my app ID has the necessary associated domains set in the Apple developer portal and regenerated my provisioning profile and built it. Nothing seems to have helped.

@gabaum10
Copy link
Author

Wow, what's even more insane is this behavior only seems to be happening if I try to hit my target URL in safari. If I use Chrome, the behaviors work as expected. That's really weird.

Also, sorry I haven't been able to contribute much more.

@gabaum10 gabaum10 changed the title iOS9 - Tries to install the app every time iOS9 - Tries to install the app every time from Safari (Chrome works fine) Mar 10, 2016
@gabaum10 gabaum10 changed the title iOS9 - Tries to install the app every time from Safari (Chrome works fine) iOS9 - Tries to hit fallback link every time from Safari (Chrome works fine) Mar 10, 2016
@aaustin
Copy link
Contributor

aaustin commented Mar 10, 2016

Hey @gabaum10 - This seems like an Universal Links config issue, like where Team ID on our dash mismatches what you entered in the plugin.

Did you run through this troubleshooting guide on our site? https://dev.branch.io/getting-started/universal-app-links/support/cordova/#troubleshooting-universal-links

@gabaum10
Copy link
Author

Oh, you're probably right. I didn't even see those docs when I was getting things set up. Sorry about that. It's bizarre that chrome works correctly.

@zanemcca
Copy link

zanemcca commented Apr 29, 2016

I am currently having this problem.
What did you do to fix it @gabaum10?

@gabaum10
Copy link
Author

I didn't. I was using phonegap build and they don't support the necessary hooks to generate the entitlements file using the branch plugin. So I gave up deep links on ios for now. It turns out all my config were right, PGB just won't work.

We have an internal project to get Cordova set up in our dev environment so I'll just implement the deep links once we do that.

@washowasho
Copy link

@gabaum10 Still the case? I'm seeing the same exact thing.

@gabaum10
Copy link
Author

gabaum10 commented Aug 7, 2017

@washowasho is what still the case? We switched over to in house cordova and dropped PGB and were able to get branch to work. Although in the case of iOS we needed to use the Branch Smart Banner https://dev.branch.io/other/smart-banner/guide/ to get the deep link to work correctly. It's an extra click but something we were comfortable with until we go native.

@washowasho
Copy link

@gbaum10 yeah, I was seeing if PGB still caused this issue. I confirmed that it does and I ended up switching to native Cordova as well. Thanks for the response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants