question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflict with Facebook plugin on iOS

See original GitHub issue

Hello!

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.

branch android

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:

not working

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:

working

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:

  1. Clone the Branch ionic3 example app from its repo
  2. Install the Facebook Cordova plugin (don’t need to initialize anything, by just installing the Facebook plugin you can reproduce the issue)
  3. Paste the deep link (something like urischeme://foo/1234) in Apple Notes
  4. Long press on the deep link (not 3D Touch). Click Open in “APP_NAME” to open your app

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:25 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
sequoiaatcommented, Oct 5, 2018

@sebaferreras @paulstelzer We are working on this for a possible solution as we were able to reproduce this issue.

1reaction
csalmi-branchcommented, Jan 15, 2019

I am closing this issue. If a problem still is occurring, please submit a support ticket or open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Facebook Page Plugin on Safari (iOS and MacOS) not working
I am trying to implement the Facebook Page Plugin and it works fine on all browsers except Safari for both iOS and MacOS....
Read more >
iOS - Sharing - Documentation - Meta for Developers - Facebook
This guide details how to enable sharing from your iOS app to Facebook. ... This is inconsistent with Facebook Platform Policy, see Developer...
Read more >
Troubleshoot your Facebook Chat Plugin's WordPress ...
If you are experiencing issues with your Facebook Chat Plugin on your WordPress extension, follow the steps outlined below to troubleshoot.
Read more >
iOS Login Fix (video version) My Lords - War and Order
NOTICE: iOS Login Fix (video version) My Lords: We've received your reports that the Facebook plugin is having a login problem.
Read more >
Topic: Facebook plugin not showing on mobile/ipad - Themeco
Also please try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found