How to Localize Push Notification Permission Dialog alert?

ios ask for push notification permission again
ios permissions dialog
the right way to ask users for ios permissions
best practices for push notifications permissions ux
sending push notifications
how to use push notifications
request push notification permission ios objective-c
requires permission to display notifications

I am trying from the last 3 hours but not able to find any method to localize it. I am using iOS 10.0 means UNUserNotificationCenter. I want to localize it in Spanish-Mexico(es-MX) Language.

The only post I have found is Customizing the iOS permission dialog for push notifications Unfortunately, it is not possible to change the text / localisation of the message.

Customizing the iOS permission dialog for push notifications, No, this is a system dialog which cannot be customized. I don't believe there is one for push notifications. It will always display the default message for notifications, you can't change it. And it will localize based on device language. – AnthonyMDev Jul 8 '19 at 20:26

You won't see any change in system alert when you run the app in the simulator it will be in English try running it in a real device after changing device language. Now the system alert for push notification will be in device language. Hope it helps:)

Asking for iOS Push Notification Permissions, You must trigger the iOS push notification permission request in your application code, and, when you do, the user will see a system dialog that  Just tested setting both body_loc_key and body. If the client doesn't have body_loc_key in it's Localizable.strings it will show the body text otherwise it will show the localized string of body_loc_key. Which is just what I want and probably what you would expect.

You can change the messages for location permission, camera usage description, photo library usage description etc by adding a new file InfoPlist.strings and add strings for supported languages against keys NS*UsageDescription in the above file.

iOS Push Notification Permissions: The Best Practices, Learn how to get your app users to opt-in with the push notification best practices. can go ahead and launch the iOS permission dialogue to get them to opt in. XPush.register(forRemoteNotificationTypes: [.alert, .badge, .sound]) System permissions dialog. You may want to delay the request for notification permissions until the user has logged in or until they have reached an appropriate section in the app where the permission is clearly required for example turning on an alerting function.

You need to add the following lines into Info.plist:

<key>CFBundleDevelopmentRegion</key>
<string>en,ru</string>    

Value must contain at least two languages (it doesn't matter which ones).

The Right Way To Ask Users For iOS Permissions, More subtly, if push notifications play a critical role in getting your user to And of course, we'd only show the system permission dialog if they  The permission dialog does not appear until you reach a level when a customize dialog popup and ask if you would like to receive notifications from Candy Crush Saga, if you press OK, then comes the iOS standard permission dialog for push notifications.

Localization, lt-popup-subtitle, Get real-time updates through Push Notifications. Shown after user lt-not-now, Not Now, Not Now button text, shown on permission prompt. Your notification only appears in the notification center history. If the user presses the Turn Off button, the system confirms the selection before denying your app authorization to send additional notifications. To request provisional authorization, add the provisional option when requesting permission to send notifications.

Requesting Permission - App Architecture - iOS, Provide custom text (known as a purpose string or usage description string) for display in the system's permission request alert, and include an example. iOS (Objective-C) Push notification text can be displayed in a Custom dialog when opened on iOS. When creating a Push using the campaign creator on the XtremePush Platform or via the external API you also have the option to add a series of key, value pairs known as a payload.

Applanga iOS Localization Integration, Installation; Configuration; Usage; Optional settings; Localize Push Notifications & Info.plist; SwiftUI. Automatic Push Notification Localization and InfoPlist.strings​  You must trigger the iOS push notification permission request in your application code, and, when you do, the user will see a system dialog that looks like this. Given the way the iOS push notification permission system works, it’s critical for the user to grant your app permission the first time she is asked.

Comments
  • I think this is what you are looking for: stackoverflow.com/questions/25736700/…
  • @Axel There is no key for PushNotification alert in InfoPlist to show custom message.
  • You cannot customize push notification alert . You don't have a key to provide localization
  • @MuhammadAdnan Are you sure? Is there any other way to do it. Client wants to localize it.
  • I am sure that its immutable for developer. Try removing permission for your app in real device after changing language (other than english). Localization will be applied if its implemented by apple itself .Otherwise (NO) there is no way or no implementation provided for localizing permission text
  • Thanks looking for more answer. If it will confirm I will accept your answer. I don't want to change just localize it.
  • And what is NS*UsageDescription for push notifications? :)
  • If you know the answer please explain it using an example.
  • I don't believe there is one for push notifications. It will always display the default message for notifications, you can't change it. And it will localize based on device language.