Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Localize Push Notification Permission Dialog alert?

Push Notification Permission Alert Image

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.

like image 718
Sourabh Sharma Avatar asked Dec 27 '16 10:12

Sourabh Sharma


People also ask

Where do I find a push notification?

Turn on notifications for Android devicesTap More on the bottom navigation bar and select Settings. Tap Turn on notifications. Tap Notifications. Tap Show notifications.

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

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

Do you need consent for push notifications?

Google announced last week that in Android 13, apps will have to ask permission before they'll be able to send push notifications. All newly-installed apps will have to get user permission before they can send notifications, while existing apps will get grandfathered in after a short grace period.


3 Answers

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.

like image 87
Axel Avatar answered Oct 22 '22 13:10

Axel


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:)

like image 33
CazzyTheCoder Avatar answered Oct 22 '22 15:10

CazzyTheCoder


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).

like image 44
Mirzohid Akbarov Avatar answered Oct 22 '22 15:10

Mirzohid Akbarov