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 100 forks source link

[MINOR][SDK-1840] add client hints to replace useragent for supported chromium browsers #876

Closed JagadeeshKaricherla-branch closed 1 year ago

JagadeeshKaricherla-branch commented 1 year ago

Pull Request Template

Description

Chromium is going to deprecate full User Agents and will start masking/reducing/freeze the user agent. The alternative for this is to use the client hints. This PR :

Fixes # (issue) : SDK-1840

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

JS Budget Check

Please mention the size in kb before abd after this PR

Files Before After
dist/build.js. 161 kb 162 kb
dist/build.min.js 75 kb 75 kb

Checklist:

Mentions:

List the person or team responsible for reviewing proposed changes.

cc @BranchMetrics/saas-sdk-devs for visibility.

gdeluna-branch commented 1 year ago

Changes look good, only concern is default value for pixel ratio