My app display name is different with name in notification center

孤人 提交于 2019-12-13 05:49:14

问题


My bundle is like sophia.music, but I changed my display name in Bundle display name to "音乐" and it works ok. But, when I receive a notification, I check the notification on the notification center it still shows music. How can I change it? Any comments?


回答1:


Follow the below steps to change the name:

  1. Go to target settings
  2. Select Build settings
  3. Search "product name". It is available under Packaging header
  4. Write your name here



回答2:


For changing app name set CFBundleDisplayName value in info.plist file:

<key>CFBundleDisplayName</key>
<string>New app name here</string>

Name specified in this way would be displayed on device under the app icon. Push notification service depends on app bundle id CFBundleIdentifier. So you needn't regenerate certificates.



来源:https://stackoverflow.com/questions/31873376/my-app-display-name-is-different-with-name-in-notification-center

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