Conflict with Facebook plugin on iOS
See original GitHub issueHello!
In our app we need to support both universal links (like https://foo.app.link/bar?campaign=95
) and the old deep links (like foobar://campaign/95
).
Universal links are working great for both Android and iOS.
When we open a deep link on Android, the Branch plugin shows that deep link in a property called +non_branch_link
, which is expected, so this scenario is working fine as well.
But this does not work well on iOS, because of a conflict with the Facebook Cordova plugin. In the screenshot below, you can notice that the Facebook plugin gets the deep link information, prints a log in the console, and then for some reason the Branch plugin is not being able to get that deep link anymore and the +non_branch_link
is empty:
If I comment that openURL
method (since we use Facebook only for tracking some in-app events, but not for allowing users to login, where I guess that openURL event is used) I can confirm that the Branch plugin is being able to get the +non_branch_link
property with the deep link:
I’m not familiar with iOS native development at all, so maybe there’s something in the way the Facebook plugin handles the deep link that causes the issue and it’s obvious, but unfortunately I’m not being able to understand what’s going on there.
Steps to reproduce the issue:
- Clone the Branch ionic3 example app from its repo
- Install the Facebook Cordova plugin (don’t need to initialize anything, by just installing the Facebook plugin you can reproduce the issue)
- Paste the deep link (something like
urischeme://foo/1234
) inApple Notes
- Long press on the deep link (not 3D Touch). Click Open in “APP_NAME” to open your app
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:25 (14 by maintainers)
Top GitHub Comments
@sebaferreras @paulstelzer We are working on this for a possible solution as we were able to reproduce this issue.
I am closing this issue. If a problem still is occurring, please submit a support ticket or open a new issue.