Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Android intent filters not covering campaign URL: how to fix

APP-017Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

An intent filter is a block in your Android app's AndroidManifest.xml that tells the phone which links the app can open. For web links (Android App Links), the filter lists a scheme (https), a host (www.example.com) and a path rule (pathPrefix, pathPattern and so on).

Why it costs you leads or sales

People who already installed your app are your best audience. When a campaign link opens a mobile web page instead, they land in a weaker experience: they must log in again, the cart is empty and the checkout is slower. Some will drop out. You also lose app-side events, so campaign results can look worse in the app than they really are.

Where the journey breaks
  1. Ad or email tapUser taps https://go.example.com/promo/spring
  2. Android checks filtersNo filter matches host or path
  3. App opens on the offerNever happens
  4. In-app purchase or signupLost

The tap reaches Android, but no intent filter matches the campaign path, so the app never opens.

Completion rate by landing experienceExample numbers
Completion rate by landing experience (example)Opens in app (Example): 12 %; Opens in browser (Example): 7 %059127Opens in app (Example)Opens in browser (Exa…%

Example: illustrative numbers only. Installed-app users often finish more often in the app than on a mobile web page.

How to check if your site has it

Check whether your campaign URL is covered
  1. Copy the exact campaign URL

    Use the final URL people tap, including the host and path, such as https://go.example.com/promo/spring?utm_source=email.

  2. Read the manifest

    Open app/src/main/AndroidManifest.xml and find every <intent-filter> with android:autoVerify="true". Compare each <data> scheme, host and path rule with your URL.

  3. Test with adb

    With the app installed on a device or emulator, run the command below. If the app does not open, or a chooser appears, the filter does not match or is not verified.

  4. Check verification status

    Run adb shell pm get-app-links com.example.app (Android 12 and later). Your host should show as verified.

Test a campaign link on a connected devicebash
adb shell am start -a android.intent.action.VIEW \
  -c android.intent.category.BROWSABLE \
  -d "https://go.example.com/promo/spring"

adb shell pm get-app-links com.example.app

How to fix it

The fix is to make the intent filter cover the campaign URL, then ship a new app build. Existing installs only pick up the change after the user updates the app.

AndroidManifest.xml: filter covering the campaign host and pathhtml
<activity android:name=".MainActivity" android:exported="true">
  <intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="https" />
    <data android:host="go.example.com" />
    <data android:pathPrefix="/promo" />
  </intent-filter>
</activity>
Fix the filter
  1. Add the missing host

    Add a <data android:host="..." /> line for every domain used in campaigns. Subdomains need their own entry.

  2. Add the missing path

    Use pathPrefix for a whole section, path for one exact page, or pathPattern for simple wildcards. Query strings such as UTMs do not need to be listed.

  3. Keep the filter complete

    It needs the VIEW action, the DEFAULT and BROWSABLE categories, and the https scheme, or Android ignores it.

  4. Handle the path in the app

    Make sure the activity reads intent.data and routes to the right screen, otherwise the app opens on the home screen.

  5. Add the host to assetlinks.json

    Serve https://go.example.com/.well-known/assetlinks.json with your package name and signing certificate SHA-256 fingerprint.

  6. Release the build

    Publish the update through Google Play. Verification runs when the app is installed or updated.

How to confirm it's fixed

Confirm the fix
  • The adb VIEW command opens the app on the right screen, with no chooser.
  • adb shell pm get-app-links <package> shows the campaign host as verified.
  • Tapping the real campaign link from an email or messaging app opens the app.
  • A device without the app still opens the web page, not an error.
  • The link works with UTM and click id parameters attached.
Intent filter before and after

Before

  • Filter lists only www.example.com and /product
  • Campaign link on go.example.com/promo opens Chrome
  • Users land on a mobile web page

After

  • Filter lists go.example.com and /promo
  • Host verified through assetlinks.json
  • Campaign link opens the app on the offer screen

How to prevent it happening again

Habits that prevent it
  • Give the app team the list of campaign hosts and paths before each launch.
  • Prefer a stable path prefix for campaigns, such as /promo, so new pages are covered automatically.
  • Add an adb link test to your release checklist.
  • Whenever you add a new domain or subdomain, update both the manifest and its assetlinks.json.
  • Keep a web fallback page for every campaign path.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. The intent filters live inside the compiled app's manifest, and FunnelGuard runs website journeys, not app installs. FunnelGuard does check the domain's assetlinks.json, which is the website half of the setup, but it cannot read your manifest or tell you whether a filter matches the campaign path.

For the manifest side, use a mobile app testing or deep link testing tool: Android Studio's App Links Assistant, adb commands in your CI pipeline, or a mobile device testing service that can run an installed app on real devices.

Questions people ask

Why is my Android app not opening from a campaign link?

Most often no intent filter in AndroidManifest.xml matches the link's host or path, or the host is not verified through assetlinks.json. Check both with the adb VIEW command and adb shell pm get-app-links.

How do I make an Android app open from a specific URL path?

Add an intent filter with the VIEW action, DEFAULT and BROWSABLE categories, the https scheme, your host, and a pathPrefix, path or pathPattern that matches the URL. Set android:autoVerify=\"true\" and publish an update.

Do UTM parameters need to be listed in the intent filter?

No. Intent filters match scheme, host and path only. Query parameters such as utm_source or gclid are passed to the app in the intent data, and your code can read them.

How do I test Android App Links with adb?

Run adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d \"https://your-link\". Then run adb shell pm get-app-links your.package.name to see whether each host is verified.

Do I need to release a new app version after changing the manifest?

Yes. Intent filters are compiled into the app, so users only get the change after they update. Verification is also re-run on install or update.

What is the difference between an intent filter and assetlinks.json?

The intent filter is in the app and says which links it can handle. The assetlinks.json file is on your domain and proves the app is allowed to handle them. Android needs both to open the app without a chooser.

Can FunnelGuard check my Android intent filters?

No. Intent filters live in the app's manifest, which FunnelGuard does not read. FunnelGuard checks the domain's assetlinks.json, and you would use a mobile app or deep link testing tool for the manifest.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.