Question

We are updating application with new application name. When user updates app it changes the application name. We are setting some local notifications through application in earlier version. After update we are removing those notifications and registering some new notifications.But if application is updated and user gets the notifications in new version then it still shows the old application name in notification bar. Where as if fresh application is installed it shows new application name in notification. How can we show new application name in this scenario?

Was it helpful?

Solution

After I understanding your scenario, the thing which I got is that when user updating the App, there still old version local notification configure before.

I advise you to Cancel all local notifications immediately when your update the App with this code:

[[UIApplication sharedApplication] cancelAllLocalNotifications];

And make sure cancelAllLocalNotifications call only once, you can do this by using bool with NSUserDefault.

And by doing this the local notification which were fire before with the old App name will be cancel and new local notification will configure with the new App name.

Hope this will helps you.

OTHER TIPS

This will show if you use the same certificate for both the application. try to change the certificate your problem will be solved.

I would say that there's not much you can do besides filing a bug.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top