05/15/2024 15:19:45

Problem description

Smartphones have installed QQ and WeChat clients

  1. QQ's authorized login cannot launch the QQ client but can launch the QQ download page WeChat's authorized login can return "WeChat is not installed"

  2. Judge whether App is installed through the IsAppInstalled interface, and return "Not installed"

Cause of the problem

The error is caused by the new feature of Android 11 (package visibility), This problem occurs when targetVersion = 30

Solution

Reduce targetVersion to 29 and below

If you must upgrade it to 30, the game can follow Google's instructions to handle this by itself Android developer documentation: https://developer.android.com/about/versions/11/privacy/package-visibility?hl=zh-cn

Under the node in AndroidManifest.xml, add a list of other apps that need to be judged, such as QQ and WeChat

<queries>
<package android:name="com.tencent.mobileqq" />
<package android:name="com.tencent.mm" />
</queries>

Image Description



Copyright © 2024 MSDK.
All rights reserved.

results matching ""

    No results matching ""