-
Notifications
You must be signed in to change notification settings - Fork 1
AB#267882 Use Install Referrer to handle deferred deeplinks #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… will fallback to using existing clipboard way
Collaborator
|
Can we use reflection just to see if installReferrer is available and if it is, use the typed methods? |
...oveSDK/optimove-sdk/src/main/java/com/optimove/android/optimobile/InstallReferrerHelper.java
Show resolved
Hide resolved
...oveSDK/optimove-sdk/src/main/java/com/optimove/android/optimobile/InstallReferrerHelper.java
Outdated
Show resolved
Hide resolved
...oveSDK/optimove-sdk/src/main/java/com/optimove/android/optimobile/InstallReferrerHelper.java
Show resolved
Hide resolved
...oveSDK/optimove-sdk/src/main/java/com/optimove/android/optimobile/InstallReferrerHelper.java
Show resolved
Hide resolved
...oveSDK/optimove-sdk/src/main/java/com/optimove/android/optimobile/InstallReferrerHelper.java
Show resolved
Hide resolved
kris-opti
approved these changes
Dec 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
Description of Changes
For deferred deep linking on andoird we want to make use of the install referrer api from google to more reliably handle the deferred deep link. Currently we copy the deeplink to a clipboard and retrieve it again once the app has been downloaded and opened. This can be flaky at times.
https://developer.android.com/google/play/installreferrer/library#connecting
Install referrer helper added and used to get referrer url. If unavailable will fallback to using clipboard method
Breaking Changes
Release Checklist
Prepare:
Bump versions in:
Integration tests
T&T Only
Mobile Only
Deferred Deep Links
Combined
Release Procedure
devtomasterGenerated description
Below is a concise technical summary of the changes proposed in this PR:
graph LR checkForNonContinuationLinkMatch_("checkForNonContinuationLinkMatch"):::modified isInstallReferrerAvailable_("isInstallReferrerAvailable"):::added checkInstallReferrer_("checkInstallReferrer"):::added getInstallReferrer_("getInstallReferrer"):::added maybeProcessUrl_("maybeProcessUrl"):::modified checkForDeferredLinkOnClipboard_("checkForDeferredLinkOnClipboard"):::modified InstallReferrerCallback_("InstallReferrerCallback"):::added extractDeepLinkFromReferrer_("extractDeepLinkFromReferrer"):::added checkForNonContinuationLinkMatch_ -- "Checks install referrer availability before deferred deep link processing" --> isInstallReferrerAvailable_ checkForNonContinuationLinkMatch_ -- "Adds install referrer check before clipboard fallback for links" --> checkInstallReferrer_ checkInstallReferrer_ -- "Retrieves install referrer string asynchronously for deferred deep linking" --> getInstallReferrer_ checkInstallReferrer_ -- "Processes extracted deep link URL from install referrer callback" --> maybeProcessUrl_ checkInstallReferrer_ -- "Falls back to clipboard if install referrer deep link absent" --> checkForDeferredLinkOnClipboard_ getInstallReferrer_ -- "Uses callback interface to notify install referrer retrieval result" --> InstallReferrerCallback_ extractDeepLinkFromReferrer_ -- "Extracts deep link URL from install referrer string for processing" --> checkInstallReferrer_ classDef added stroke:#15AA7A classDef removed stroke:#CD5270 classDef modified stroke:#EDAC4C linkStyle default stroke:#CBD5E1,font-size:13pxIntegrate the Google Play Install Referrer API into the SDK to reliably handle deferred deep links, improving upon the existing clipboard-based method. Introduce
InstallReferrerHelperto manage API interactions and updateDeferredDeepLinkHelperto prioritize the new API before falling back to the clipboard.Latest Contributors(2)