Customizing the iOS permission dialog for push notifications
Solution 1
No, this is a system dialog which cannot be customized.
Solution 2
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.
Solution 3
Not possible, since you dont have any control on it whatsoever
Solution 4
No you cant change system in built message.because you dont have any control to it.
David Foster
Updated on July 09, 2022Comments
-
David Foster almost 2 years
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 theNSCameraUsageDescription
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. -
David Foster about 12 yearsAs a workaround, a separate dialog can be displayed prior to taking action that would show the system permissions dialog.
-
Ferran Maylinch about 7 yearsYep, like in this example: techcrunch.com/2014/04/04/…
-
Ramesh.G almost 7 years@David Foster is it possible to change the permission dilog box (camera persmission) text to chineese ? how to do it have any idea?
-
Suresh Durishetti almost 7 years@Ramesh 1. Yes, you can add whatever text you want as permission text in plist file, but for location service you can't, its system dialogue. 2. If app supports internalisation, follow this stackoverflow.com/questions/25736700/…