How to Localize Push Notification Permission Dialog alert?

陌路散爱 提交于 2019-11-30 17:31:32
Axel

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.

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.

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

Mirzohid Akbarov

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

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