The Branch Android SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
SDK-2444 -- Support setting FB App ID through branch.json
Description
To support Meta Install Referrers on plugins, we need to enable clients to set the FB App ID before the install request is sent. Instead of using setFBAppId() directly, clients can now set it in the branch.json file.
This update also resolves a minor bug where setAPIUrl() was called every time, resulting in a warning message: "setAPIUrl: URL cannot be empty or null". This issue occurred because the method was invoked every time the JSON was checked, even if it was empty. Now, setAPIUrl() is only called when apiUrl is present in branch.json
Testing Instructions
Set fbAppId in branch.json and check if its being proper set and used.
Risk Assessment [LOW]
[x] I, the PR creator, have tested — integration, unit, or otherwise — this code.
Reviewer Checklist (To be checked off by the reviewer only)
Reference
SDK-2444 -- Support setting FB App ID through branch.json
Description
To support Meta Install Referrers on plugins, we need to enable clients to set the FB App ID before the install request is sent. Instead of using
setFBAppId()
directly, clients can now set it in the branch.json file.This update also resolves a minor bug where
setAPIUrl()
was called every time, resulting in a warning message: "setAPIUrl: URL cannot be empty or null". This issue occurred because the method was invoked every time the JSON was checked, even if it was empty. Now,setAPIUrl()
is only called when apiUrl is present in branch.jsonTesting Instructions
Set fbAppId in branch.json and check if its being proper set and used.
Risk Assessment [
LOW
]Reviewer Checklist (To be checked off by the reviewer only)
cc @BranchMetrics/saas-sdk-devs for visibility.