Customizing the iOS permission dialog for push notifications

微笑、不失礼 提交于 2019-11-29 01:03:19

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

One workaround that I have seen involves an app bringing up its own custom dialog explaining why it needs a permission. Then immediately afterwards the app requests the permission, bringing up the system dialog.

This may be suitable for convincing a user to accept the permission request in order to gain access to a feature, or to reject the request with the knowledge that the feature will not be available.

Not possible, since you dont have any control on it whatsoever

No you cant change system in built message.because you dont have any control to it.

Recent versions of iOS do allow these permission dialogs to be customized.

Put your message in the NS*UsageDescription Info.plist key corresponding to the type of permission dialog you want to customize.

For example the NSCameraUsageDescription key controls what dialog text to display when requesting access to the user's camera.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!