Open ArtemZip opened 3 years ago
Solved by downgrading compileSdkVersion
and targetSdkVersion
to 28 instead of 30
Adding
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
In AndroidManifest.xml
also solved this issue for me
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
Solved by downgrading compileSdkVersion and targetSdkVersion to 28 instead of 30
what about iOS
Adding
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
In
AndroidManifest.xml
also solved this issue for me
Recently Google announced that they are restricting the usage of QUERY_ALL_PACKAGES
, allowing it to be used only for apps that must discover any and all installed apps on the device, for awareness or interoperability purposes. In order to publish new apps or updates, app developers will also be required to submit a Permissions Declaration Form explaining why the app really needs such broad permission.
So, it would be better to use a less broad app-visibility method, such as the \<queries> element to specify exactly which packages to query.
Adding the following under the <manifest>
tag of your AndroidManifest.xml
file will suffice:
<queries>
<package android:name="com.instagram.android" />
<package android:name="com.facebook.katana" />
<package android:name="com.twitter.android" />
<package android:name="com.whatsapp" />
<package android:name="org.telegram.messenger" />
</queries>
Output:
Version: ^2.1.1 Also, sharing is not working, I think because of that.