Android 12 require you to add a piece of code to your main activity
-
Go to your project folder and open AndroidManifest.xml file
-
Add the below code in activity
android:exported="true"
Reference:
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme">
</activity>