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.
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 :
adds method to retrieve high entropy useragent data like model, platform version
modify API request params to include useragent data model, os version
add tests
Fixes # (issue) : SDK-1840
Type of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
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
[x] Unit test
[x] Integration test
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:
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[ ] I have checked my code and corrected any misspellings
Mentions:
List the person or team responsible for reviewing proposed changes.
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
Checklist:
Mentions:
List the person or team responsible for reviewing proposed changes.
cc @BranchMetrics/saas-sdk-devs for visibility.