I am working on a project in Flutter and I want to open whatsApp from the app. All things working good, whatsApp is opening on every android device but not opening on android version 12
CodePudding user response:
The problem is probably caused by the change in package visibility starting with Android 11.
You need specify that your app needs to interact with other apps in your manifest file. Add Whatsapp's package name explicitly like this:
<manifest package="com.example.game">
<queries>
<package android:name="com.whatsapp" />
</queries>
...
</manifest>
Source: https://developer.android.com/training/package-visibility/declaring