The Android phone has WeChat installed, but it still prompts that WeChat is not installed

Android 11 strengthens the privacy protection policy, introduces a large number of changes and restrictions

Solution

According to the adaptation scheme given by the Android official, adding the <queries> tag to the AndroidManifest.xml of the main project can solve the above impact. The code is as follows:

<manifest package="com.example.app">
  
      ...
  
      // Add the following <queries> tag to the application's AndroidManifest.xml
    <queries>
        <package android:name="com.tencent.mm" /> // specify WeChat package name
    </queries>
  
      ...
 
</manifest>

  <queries>
        <package android:name="com.tencent.mm" />
    </queries>
    
    <queries>
        <package android:name="com.tencent.mobileqq" />
    </queries>
    
    <queries>
        <package android:name="com.qzone" />
    </queries>
    
    <queries>
        <package android:name="com.sina.weibo" />
    </queries>
    
    <queries>
        <package android:name="com.tencent.WBlog" />
    </queries>

Guess you like

Origin blog.csdn.net/Jason_HD/article/details/130301088