Skip to content

Changes needed when targetting SDK 30+ #599

Description

@chrisbanes

The new package visibility changes in Android 11 means that all of the queryIntentActivities() call BrowserSelector.java is broken.

As per the docs, the following should be added to your app's manifest when targeting SDK 30 and above:

<manifest>
   <application>
       <blah />
   </application>

    <queries>
        <intent>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="https" />
        </intent>

        <intent>
            <action android:name="android.support.customtabs.action.CustomTabsService" />
        </intent>
    </queries>

</manifest>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions