Skip to content

Android 11+ issue with package visibility #1

@giovanni-caiazzo

Description

@giovanni-caiazzo

Hi,
Thank you for making this repo. It is working on iOS and Android 10 and lower. Unfortunately it is not working on Android 11+ because they introduced package visibility and so if you don't add WalletConnect app visibility in the android manifest the app will not be able to see that any wallet app is installed in the phone and it will redirect to the browser.
See here for details.
Basically with Expo Managed you can't put this code in AndroidManifest.xml:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example">
    [...]

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

If you have any idea on what to do it would help me a lot. I would prefer not ejecting, but that seems the only possibility right now...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions