Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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)

enter image description here

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?

like image 408
Brandon A Avatar asked Nov 02 '14 21:11

Brandon A


People also ask

How do I change my app Display name?

Go to the app > res > values > strings. xml file as shown in the below image. In this file we have a string name as app_name it is the string resource that holds the current app name which is passed in the Manifest. xml file's application tag inside the label attribute.

How do I change my target name in Xcode?

Rename the Target to Rename the App Select the project from the project navigator to open the project editor and see a list of the app's targets. To rename a target, select it, press the Return key, and enter the new name. If all you want to do is rename the app, you're finished.

Can I change app name?

Yes you can. By changing the android:label field in your application node in AndroidManifest. xml . to your Splash Screen, then the Launcher Icon name will be changed to the name of your Splash Screen Class name.


1 Answers

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.

like image 54
Jan Avatar answered Oct 04 '22 07:10

Jan