Invite links
share the app, count the installs.
A holder shares a link with a personal code. The console counts installs per code. There are no rewards and no identity.
01What it does
The Invite screen gives every installation an eight character code and a link of the form https://<your website>/i/<code>, with a share button. When someone installs the app and opens it from that link for the first time, the app tells your backend once. The console shows how many installs each code brought. The feature has no rewards: nothing is paid, promised or tracked per person.
02Switch it on in the console
- BrandSet the Website (Brand section) to the domain that will serve your links, for example
https://app.yourproject.com. The link uses its host. - Holder featuresSwitch on Invite links.
- Invites pageThe Invites page in the console lists installs per code (counts only).
03App Links setup (assetlinks.json)
So that Android opens the link in your app instead of the browser, the link domain and the app must vouch for each other.
- Build with the hostBuild the app with the same host:
./gradlew :app:assembleRelease -PinviteHost=app.yourproject.com. The manifest then contains a verified filter forhttps://app.yourproject.com/i/. The default placeholder host works nowhere. - Get the fingerprintYour signing certificate's SHA-256 fingerprint. With Play App Signing use the app signing key fingerprint shown in the Play Console under App integrity.
- Publish the fileServe this JSON over HTTPS at
https://app.yourproject.com/.well-known/assetlinks.json, with content typeapplication/json, no redirect:
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.yourcompany.cryptowalletpro",
"sha256_cert_fingerprints": ["AA:BB:...:FF"]
}
}]
- Serve a landing pageYour website should answer
/i/<code>with a page that links to your Play Store listing, for people who do not have the app yet. - CheckInstall the release build, then run
adb shell pm get-app-links com.yourcompany.cryptowalletpro. The state for your host should readverified. Opening a link withadb shell am start -a android.intent.action.VIEW -d https://app.yourproject.com/i/ABCD2345should open the app.
Use your own package id in the file; com.yourcompany.cryptowalletpro is the placeholder of the source. If the file is missing or wrong the link opens in the browser: the feature still works through the code shown on the Invite screen, but installs from the link are not counted.
04Security notes
- Only an https link with the exact path
/i/<8 characters>is accepted; links with a user name or other shapes are ignored. - One claim counts per installation. Calls are limited to ten per minute and IP.
- Counts are per code. No address, name or device identifier is stored with a claim.