Blog

Testing Deep Links and App Links in a Google Play Closed Test

Testing Deep Links and App Links in a Google Play Closed Test

Deep links work on your emulator and then fail on a tester's phone. The usual cause is that your closed test build is signed differently from your local build, and Android verifies web links against the signing certificate. A closed test is a good time to catch this, because testers install your app the same way real users will.

This post covers what to check, how to give testers something they can actually do, and which failures show up most often.

Deep links, App Links and why they behave differently

Three terms get mixed up, so here is a quick split:

  • Custom scheme links look like myapp://item/42. They open your app if it is installed and do nothing useful if it is not. No verification is involved.
  • Web links (deep links on http/https) point to your website URLs and can open your app, but the system may show a chooser or just open the browser.
  • Android App Links are verified web links. Android checks a file on your domain to confirm your app is allowed to handle those URLs, and then opens the app directly without a chooser.

Verification behavior has changed between Android versions. On recent versions, an unverified web link generally opens in the browser instead of your app. Check the current rules in the official App Links verification guide rather than relying on memory, including mine.

Step 1: Check the signing fingerprint first

This is the most common App Links failure in a first release. Your assetlinks.json file, served from /.well-known/assetlinks.json on your domain, lists the SHA-256 fingerprint of the certificate that signs your app.

If you use Play App Signing, the certificate on devices is Google's app signing key, not your upload key. A file that lists only your local debug or upload fingerprint will verify on your own builds and fail for every tester.

  1. Open Play Console and find the app signing key certificate fingerprint for your app. The exact location can change, so check Play Console Help if you cannot find it.
  2. Add that SHA-256 value to assetlinks.json. If you also want local builds to verify, add the debug or upload fingerprint as a second entry.
  3. Open the file in a browser and confirm it loads over HTTPS with no redirect and a JSON content type.
  4. Make sure the package name in the file matches your application ID exactly.

If you are unsure how signing works for your first release, our post on app signing and AAB basics in the blog covers it.

Step 2: Test the links yourself before testers do

Install the build from the closed test track on your own phone, not a sideloaded copy. Then try:

  • Tapping a link in a chat app, an email, and a notes app.
  • Typing the URL into the browser address bar. Some browsers handle this differently from tapped links.
  • Using adb to fire the intent directly: adb shell am start -W -a android.intent.action.VIEW -d "https://example.com/item/42" com.example.app
  • On Android 12 and later, checking verification state with adb shell pm get-app-links com.example.app.

Verification can take a little while after install, and it needs the device to reach your domain. If a link fails right after install, wait and retry before you conclude it is broken, but do not wave away a persistent failure.

Step 3: Build a short link test list for testers

Testers will not know which links your app supports. Most do not use adb. Give them a plain list they can tap from wherever they are. A good list has four to six items, each with the link and the expected result.

  • Valid link, app closed. Swipe the app away, tap the link. It should open the right screen.
  • Valid link, app already open. Tap the link while the app is on another screen. It should go to the target screen without stacking duplicates.
  • Link with a bad or missing ID. Something like /item/999999. The app should show a friendly error, not crash or hang on a spinner.
  • Link while logged out. If the target needs an account, the user should log in and then land on the target, not on the home screen.
  • Link from a browser. Tap it from a web page and note whether the app opens or the page loads in the browser.

Ask testers to report the Android version, where they tapped the link (chat app, email, browser), and what happened. "It didn't work" is not enough to debug a verification problem. If you want more on collecting useful reports, see our FAQ for how testers submit written feedback.

What to watch for in the results

The link opens the browser instead of the app

This usually means verification failed. Check the fingerprint, the package name, the file URL, and that your manifest intent filter has android:autoVerify="true" and declares the correct host. A missing BROWSABLE category will also stop links from working from outside the app.

The app opens but on the wrong screen

Your activity probably reads the intent only in onCreate. If the app is already running, the new link arrives in onNewIntent (or through your navigation library's handling), and it is easy to forget. Test the warm-start case on purpose.

The back button behaves strangely

When a link opens a deep screen, pressing back should lead somewhere sensible, usually the parent screen or the app's home, not straight out of the app, unless that is your intended design. Ask testers to press back after each link and tell you where they ended up.

Links break after login or onboarding

First-time users who arrive through a link skip your normal path. If your first-run flow sets up something the target screen needs, a link can land them on a screen with missing data. This overlaps with first-run testing, but the entry point is different, so test it separately.

Links work for you but not for testers

Compare installs. If you tested a debug build and testers have the Play build, the signing certificate is the first suspect. Next, check whether the testers' devices can reach your domain, since a staging domain behind a login or VPN will fail verification.

Don't expose private or half-built links

Deep links are public entry points to your app. Anyone can craft a URL and tap it. During testing, check that links do not skip authentication or open screens that expect trusted input. Treat parameters from links as untrusted data: validate IDs, and never pass raw values into a web view or a database query.

Where a closed test helps

Emulators and your own devices only cover a few combinations of browser, messaging app, and Android version. Testers on their own phones will open links from apps you do not use. If you use TesterMob, testers use their own Android phones and use your app for about 20 minutes a day, so including a short link checklist in your test instructions gives you real-device results across their setups. You can read how it works on the developer page.

Keep expectations realistic. A passing link test does not guarantee anything about Google's production access decision, and Play requirements change, so check Play Console Help for the current rules.

Quick checklist

  • assetlinks.json lists the Play app signing certificate fingerprint.
  • The file loads over HTTPS at the /.well-known/ path, with no redirects.
  • Manifest intent filters include VIEW, DEFAULT, BROWSABLE, and the right host.
  • Cold start and warm start both land on the correct screen.
  • Invalid links show a helpful error.
  • Logged-out users are routed through login and then to the target.
  • Back navigation behaves as designed.
  • Testers have a short list with expected results and know what to report.

Deep links are a small feature that people notice only when it fails. A few minutes with a signed Play build and a handful of testers will catch most of the problems before your production release.

Your 14 days start today.

Set up your closed test in minutes, or join as a tester and start earning.