Android 13 隐私权限和安全变更之通知

介绍

根据官网https://developer.android.com/about/versions/13/summary?hl=zh-cn展示的Android 13 功能和变更列表中提及的,Android 13(API 级别 33)引入了新的权限POST_NOTIFICATIONS。

使用

在Android 13及以上版本,如需向应用请求新的通知权限,则需要在AndroidManifest.xml的权限列表中配置如下。

XML 复制代码
<manifest ...>
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
    <application ...>
        ...
    </application>
</manifest>

对新安装应用的影响

如果用户在搭载 Android 13 的设备上安装您的应用,应用的通知默认处于关闭状态。在您请求新的权限且用户向您的应用授予该权限之前,您的应用都将无法发送通知。

相关推荐
xinhuanjieyi10 分钟前
ruoyimate导入sql\antflow\bpm_init_db.sql报错
android·数据库·sql
闲猫1 小时前
基于RABC的权限控制设计
android
星霜笔记4 小时前
GitMob — 手机端 GitHub 管理工具
android·kotlin·github·android jetpack
LiuYaoheng5 小时前
问题记录:Android Studio Low memory
android·ide·android studio
独隅6 小时前
Python 标准库 (Standard Library) 全面使用指南
android·开发语言·python
always_TT6 小时前
strlen、strcpy、strcat等常用字符串函数
android
qqty12176 小时前
MySQL Workbench菜单汉化为中文
android·数据库·mysql
2401_895521346 小时前
MySQL中between and的基本用法
android·数据库·mysql
云云鬼才7 小时前
CoCo编辑器、图形化编程怎么调用Scheme(跳转应用)
android
Jason__Young9 小时前
Android ViewModel为什么能够跨越Activity的生命周期?
android