uni-app应用Google Play上架后提示Implicit PendingIntent Vulnerability

uni-app应用Google Play上架后提示Implicit PendingIntent Vulnerability

问题描述

Android 离线打包后上传到 Google Play,提示如下:

Implicit PendingIntent Vulnerability

搜索了下:Implicit PendingIntent Vulnerability 这个 链接 似乎是 intent 的安全问题?想问下怎么解决


更多关于uni-app应用Google Play上架后提示Implicit PendingIntent Vulnerability的实战教程也可以访问 https://www.itying.com/category-93-b0.html

6 回复

我也遇到这个问题了,前天提交的,以前没遇到过这个问题

更多关于uni-app应用Google Play上架后提示Implicit PendingIntent Vulnerability的实战教程也可以访问 https://www.itying.com/category-93-b0.html


官方的說用最新的Hbuilder測試版看看
我中午build了一下上去還未有email通知錯誤 可能有機會。

你好,请问使用了最新的测试版问题解决了吗

回复 8***@qq.com: 没用

遇到同样的问题了,希望有大佬给出解决方案。

这个问题是由于Android 12(API level 31)引入的PendingIntent安全限制导致的。

解决方案:

  1. 设置PendingIntent的FLAG_IMMUTABLE 在创建PendingIntent时添加FLAG_IMMUTABLE标志:

    PendingIntent pendingIntent = PendingIntent.getActivity(
        context, 
        requestCode, 
        intent, 
        PendingIntent.FLAG_IMMUTABLE
    );
回到顶部