CORE JSC

International Technology Partnership

React Native

Fixing React Native Linking.openURL That Silently Fails on Android 11+ Due to Missing Package Visibility

Tapping a phone number, an email address, or a map link works fine on an older test device, but on a real Android 11+ phone, the exact same Linking.openURL call does nothing — no crash, no error, Linking.canOpenURL just quietly returns false for an app that's genuinely installed. Android 11 locked down which other apps a package can even see, and React Native's Linking module has no way around that without the manifest explicitly asking for visibility.

Core JSC Team·November 29, 2026
React NativeAndroidLinkingPackage VisibilityMobile Development

The Problem

Tapping a phone number to open the dialer, an email address to launch a mail client, or a map coordinate to open a maps app works correctly on an older device or test build. The exact same Linking.openURL() call — or a prior Linking.canOpenURL() check — on a real Android 11 or newer device does nothing: no crash, no visible error, and no app launches. Checking canOpenURL's actual return value shows it reporting false, even though the target app (the phone dialer, Gmail, Google Maps) is genuinely installed and would normally handle that intent without issue.

Why It Happens

Android 11 introduced package visibility restrictions as a privacy measure, hiding other installed apps from a package by default

Starting with Android 11 (API level 30), an app can no longer see or query other installed packages by default — a deliberate privacy restriction intended to stop apps from silently fingerprinting a device by enumerating everything else installed on it. This applies to intent resolution broadly, including the exact mechanism React Native's Linking module relies on to check whether something can handle a given URL scheme.

Without an explicit queries declaration in the manifest, the system's intent resolution simply finds nothing, regardless of what's actually installed

React Native's Linking.canOpenURL() and openURL() ultimately call into Android's PackageManager to resolve the given URL against installed apps capable of handling it. Without an app explicitly declaring, via a <queries> element in its manifest, which intents or packages it needs visibility into, that resolution call returns no match at all under the new restriction — not because nothing is installed, but because the querying app isn't permitted to see it.

This is easy to miss during development because the restriction only applies starting at API 30, and some test environments don't genuinely enforce it the same way a real device does

An older physical test device, certain emulator images, or a debug build running against a lower target/compile SDK version can behave as if everything works fine, simply because the package-visibility restriction doesn't apply below API 30 — the bug only becomes visible once testing happens on a genuine Android 11+ device or emulator running the actual restricted API level, which can be well after development first started.

The Fix

1. Add explicit queries declarations in AndroidManifest.xml for every URL scheme the app needs to resolve

<!-- android/app/src/main/AndroidManifest.xml -->
<manifest>
    <queries>
        <intent>
            <action android:name="android.intent.action.DIAL" />
            <data android:scheme="tel" />
        </intent>
        <intent>
            <action android:name="android.intent.action.SENDTO" />
            <data android:scheme="mailto" />
        </intent>
        <intent>
            <action android:name="android.intent.action.VIEW" />
            <data android:scheme="geo" />
        </intent>
    </queries>
    ...
</manifest>

Each scheme the app actually opens — tel:, mailto:, geo:, a custom app scheme, or any other — needs its own explicit <intent> declaration here; without this, no amount of fixing the React Native or JavaScript side of the code resolves the problem, because the restriction is enforced entirely at the native Android package-resolution layer.

2. For resolving a specific known app by package name, declare that package explicitly rather than relying on a generic intent action

<queries>
    <package android:name="com.google.android.apps.maps" />
</queries>

When the goal is specifically checking for or opening one known app — rather than any app capable of handling a general scheme — declaring that exact package name directly is more precise than a generic intent filter, and is the correct approach for integrations that specifically need to know whether one particular app is present.

3. Test specifically on a real Android 11+ device or an emulator image running API 30 or higher

Verify the test device/emulator's actual API level (Settings -> About
Phone -> Android version, or the emulator's configured system image) —
a test environment on API 29 or lower will never exhibit this bug
regardless of whether the manifest fix is correct or missing.

Because the restriction simply doesn't exist below API 30, confirming the test device's actual API level before concluding a fix worked (or that the bug doesn't exist) is essential — a passing test on an old device proves nothing about behavior on the API level where this problem actually occurs.

4. Log canOpenURL's actual boolean result directly, rather than inferring success or failure from whether the UI appeared to do something

const canOpen = await Linking.canOpenURL(url);
console.log("canOpenURL result:", canOpen, "for", url);
if (canOpen) {
  await Linking.openURL(url);
} else {
  // Explicitly surfaced, rather than a silent no-op
  console.warn("No app available to handle:", url);
}

Explicitly logging the actual boolean result distinguishes a genuine "no app can handle this" case from a package-visibility false negative, and surfaces the failure in a way that's actually debuggable — a silent no-op with no logging gives no information to work from when the UI simply does nothing.

Why This Works

A silently failing Linking.openURL call on Android 11+ is never really a React Native bug — it's Android's own package-visibility restriction correctly hiding another app's package from a query that never declared it needed to see it. Declaring the specific intents or packages an app genuinely needs to resolve, testing on an API level where the restriction actually applies, and logging the real result of canOpenURL together turn an invisible platform restriction into a correctly-declared, testable, and debuggable piece of manifest configuration.

Conclusion

A phone, email, or map link that silently fails to open on Android 11+ is a missing package-visibility declaration, not a bug in the Linking call itself. Adding explicit <queries> entries for every scheme or package the app needs to resolve, testing specifically on API 30 or higher, and logging canOpenURL's actual result turns a silent dead end into a link that opens reliably regardless of the Android version it runs on.