BranchMetrics / web-branch-deep-linking-attribution

The Branch Web SDK for deep linking and attribution. Once initialized, the Branch Web SDK allows you to create and share links with a banner (web only), over SMS, or your own methods by generating deep links. It also offers event tracking, access to referrals, and management of credits.
https://help.branch.io/developers-hub/docs/web-sdk-overview
MIT License
287 stars 101 forks source link

iOS 17.2.1 Safari Private Browsing - Blocked Connection to Branch.io CDN as a Known Tracker #975

Open NamanShergill opened 5 months ago

NamanShergill commented 5 months ago

Describe the bug

Users on iOS 17.2.1 Safari Private Browsing are experiencing blocked connections to the Branch.io CDN, specifically to the URL https://cdn.branch.io/branch-latest.min.js. The browser is flagging this connection as it identifies it as a known tracker.

Steps to reproduce

  1. Use an iOS device running version 17.2.1.
  2. Open Safari in Private Browsing mode.
  3. Visit a website that includes the Branch.io CDN script: https://cdn.branch.io/branch-latest.min.js.
  4. Observe the blocked connection in the browser's console or network logs.
    Blocked connection to known tracker https://cdn.branch.io/branch-latest.min.js in frame 

Expected Behavior

The connection to the Branch.io CDN should not be blocked, and the script should load successfully in Safari Private Browsing mode.

Additional Information/Context

If not the tracking functionality, at least the core functionality should still be available, for redirects to still function.

SDK version used (window.branch.sdk)

2.81.0 (Doesn't really matter though, this issue is not dependent on the SDK version)

Environment

Safari on iOS 17.2.1 (Private Browsing)

StormPooper commented 4 months ago

Probably the same issue as #538 and https://github.com/BranchMetrics/android-branch-deep-linking-attribution/issues/920, adblockers blocking Branch because of tracking. As mentioned here, tracking being blocked is fine, but functionality like sharing links and such get blocked (and you can't fall back to using the web link when using the iOS/Android SDKs in native apps). Can reproduce this on Android using a tool like Adguard.