简体   繁体   English

Xcode:如何更改通知中心的应用程序名称

[英]Xcode: How to change App Name for Notifications Center

Scenario 脚本

I have an app that sends notifications to the users. 我有一个应用程序,可以向用户发送通知。 I have recently changed my app name in Xcode (about every way you can change it, "Bundle Name", "Product Name", you 'name' it...) and then changed it all back to the final name. 我最近在Xcode中更改了我的应用程序名称(关于你可以改变它的每一种方式,“Bundle Name”,“Product Name”,你'命名'它......)然后将它们全部改回最终名称。

Problem 问题

Now when I send a notification to the phone it doesn't show the final name change in the header section of the Notification Center. 现在,当我向手机发送通知时,它不会在通知中心的标题部分显示最终名称更改。 Instead, it is showing the old name that I changed it from. 相反,它显示了我更改它的名称。

Picture (circled in red - this is the part that is showing the old name) 图片 (用红色圈出 - 这是显示旧名称的部分)

在此输入图像描述

FYI FYI

Under the "Info" tab - the fields, "Bundle name" and "Bundle display name" both show the correct final name change. 在“信息”选项卡下 - 字段,“分发名称”和“分发显示名称”都显示正确的最终名称更改。

And under the "Build Settings" tab - the fields, "Product Module Name" and "Product Name" both also show the correct final name change. 在“构建设置”选项卡下 - 字段,“产品模块名称”和“产品名称”也显示正确的最终名称更改。

Question

Does anyone know if this is a bug or if there is a naming field I'm failing to change for this? 有谁知道这是一个错误还是有一个命名字段我没有改变这个?

Rebooting the device or resetting the simulator seems to fix the issue. 重新启动设备或重置模拟器似乎解决了这个问题。

PS: Credit goes to @EricS but thought I would go ahead and make a proper answer so we don't leave the question unanswered. PS:积分归@EricS所有,但我认为我会继续做出正确答案,所以我们不会留下未回答的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM