Skip to content
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

[ABW-3438] - Rich AF installation link #1017

Merged

Conversation

sergiupuhalschi-rdx
Copy link
Contributor

@sergiupuhalschi-rdx sergiupuhalschi-rdx commented Jun 28, 2024

Jira ticket: ABW-3437

Description

This PR resolves deferred deep links via AppsFlyer. This will allow new users to tap on a link that will redirect them to the Google Play store, but when the app is downloaded and opened, it will fetch specific information sent on the link query params.
For now, we are just logging this information. In future PRs we will deal with it.

How to test

  1. Delete every Radix Wallet app from your device (should work just by deleting Dev, but I've tested without any other)
  2. Select any One Link on the AppsFlyer dashboard from test template. For example, you can select:
https://radixdlt.onelink.me/WAKF/eun9mos3
  1. Append the query parameters you would like to catch under deep_link_value or deep_lin_sub1/10. For example, it should be like:
https://radixdlt.onelink.me/WAKF/eun9mos3?deep_link_value=reviewPR&deep_link_sub1=thisWorks
  1. Copy the link on your device (e.g. in Notes app), and tap on it. Your browser will open indicating The app you are looking for is unavailable. This is because Dev (debug) isn't available on the Google Play store.
  2. Run the app from Android Studio to simulate an install.
  3. Check the logs and filter by Click event. You should see something like the following:
did resolve deep link. Is deferred: true. 
Click event: {"campaign_id":"","af_sub3":"","match_type":"probabilistic","af_sub1":"",
"deep_link_value":"reviewPR","campaign":"","af_sub4":"","timestamp":
"2024-06-28T17:25:35.362","click_http_referrer":"","af_sub5":"","media_source":"","af_sub2":"",
"deep_link_sub1":"thisWorks","is_deferred":true}

You can see that both query parameters have been intercepted by the app after its installation.

Note: You must have secrets.properties file at ../config/secrets/ path with appsFlyerDevKey defined.

@sergiupuhalschi-rdx sergiupuhalschi-rdx marked this pull request as ready for review June 28, 2024 17:51
@sergiupuhalschi-rdx sergiupuhalschi-rdx changed the title Rich AF installation link [ABW-3438] - Rich AF installation link Jun 28, 2024
Copy link

sonarcloud bot commented Jun 29, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 40%)

See analysis details on SonarCloud

Copy link
Contributor

@giannis-rdx giannis-rdx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sergiupuhalschi-rdx sergiupuhalschi-rdx merged commit f9d9d66 into main Jul 1, 2024
8 of 9 checks passed
@sergiupuhalschi-rdx sergiupuhalschi-rdx deleted the feature/ABW-3438-rich-af-installation-link branch July 1, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants