问题
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:
- Go to target settings
- Select Build settings
- Search "product name". It is available under Packaging header
- 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