Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customizing the iOS permission dialog for push notifications

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?

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.

like image 721
David Foster Avatar asked Jun 09 '12 18:06

David Foster


People also ask

Can you have a custom dialog message when asking for notification permissions?

No, this is system message, you can't change to custom.

How do you customize push notifications?

To do so, navigate to the Settings > App Settings page, select the app you'd like to set up custom push notifications for, then scroll down to the push notifications section.


2 Answers

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

like image 111
melsam Avatar answered Oct 11 '22 11:10

melsam


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.

like image 38
David Foster Avatar answered Oct 11 '22 11:10

David Foster