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.

Branch IO Deep Linking works only after I clear the Safari history and cache data on iOS

See original GitHub issue

I’m trying to add a sharing feature to my existing app using Unity Branch SDK. I retrieve custom data from initSession function of Branch SDK (Unity).

void Start()
{
    Branch.initSession(CallbackWithBranchUniversalObject);
}

void CallbackWithBranchUniversalObject(BranchUniversalObject buo,
                                    BranchLinkProperties linkProps,
                                    string error)
{
    string senderDeviceID = linkProps.controlParams["$deviceID"];
}

But initSession function seems to work a few times but it returns empty BranchUniversalObject JSON and BranchLinkProperties JSON after that. After a few days of struggling, I found that Safari history and cache data causes the issue. When I clear the Safari history and cache data, initSession function works again as I expected and I can retrieve custom data from Branch deep link.

How do Safari history and cache data affect the Branch deep link? What should I do to fix the problem of empty BranchUniversalObject JSON and BranchLinkProperties JSON?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
echo-branchcommented, May 6, 2020

Thanks for the information! I’m hoping to devote the next sprint to working through github issues.

0reactions
psilvestre-devcommented, Jul 2, 2020

Hi, I’m facing the same issue… do we know if the fix is prioritized to be in the roadmap? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Branch IO Deep Linking works only after I clear the Safari ...
Uninstalling and reinstalling the app several times often results in browser cache not refreshing as per the App's current state.
Read more >
iOS Troubleshooting - Branch Help
Click the Branch Link from Apple Notes and have it route through Safari. Click the call-to-action and ensure that the link is copied...
Read more >
Deep links do not open the app - Branch Help
Deep links do not open the app · Make sure you are not pasting a deep link in the address bar (in most...
Read more >
Safari error: "Safari cannot open this page because address is ...
You can clear your Safari cache (Settings > Safari > Clear History and Website Data) to remove the error. Alternatively, you can try...
Read more >
How to Set Up Universal Links to Deep Link on Apple iOS
Instead of opening up Safari first when a link is clicked, iOS will check if a Universal Link has been registered for the...
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