自定义推送通知的 iOS 权限对话框 [英] Customizing the iOS permission dialog for push notifications

查看:38
本文介绍了自定义推送通知的 iOS 权限对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当 iOS 应用首次尝试注册推送通知时,系统会弹出一个权限对话框,要求用户授予接收推送通知的权限.是否可以自定义此对话框的文本,以解释为什么要寻求这些权限?

When an iOS app attempts to register for push notifications for the first time, the system pops up a permissions dialog asking the user for permission to receive push notifications. Is it possible to customize the text of this dialog, to explain why these permissions are being sought?

大多数权限对话框消息都可以通过放入 NS*UsageDescription 来自定义 Info.plist 键.例如,NSCameraUsageDescription 键控制请求访问用户相机时显示的对话框文本.但是推送通知好像没有这样的key.

Most permission dialog messages can be customized by putting in an NS*UsageDescription Info.plist key. For example the NSCameraUsageDescription key controls what dialog text to display when requesting access to the user's camera. But there does not appear to be such a key for push notifications.

推荐答案

不,这是一个无法自定义的系统对话框.

No, this is a system dialog which cannot be customized.

这篇关于自定义推送通知的 iOS 权限对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆