Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App lost control over local notifications after being updated from App Store

I have an app with local notification at the App Store.

In the last 4 version updates to my app, there were customers who experienced something strange - the app lost control over previous notifications, they kept getting all notification scheduled before the update, even though they should've been canceled by [[UIApplication sharedApplication] cancelAllLocalNotifications]!

While communicating with these customers, I told them to turn off reminders, something that performs cancelAllLocalNotifications, but they claim to keep getting reminders.

Also, reinstalling the app doesn't get rid of the old notifications! It's as if iOS thinks this is a different app.

It doesn't happen to most of my customers, only to rare few - but still, it happens every update!

How can it be?

Update

3 years later and it's still happening.

Every update some customers keep receiving local notifications, but the app can't see those, nor can control them.

Can anyone solve this or prove it is a bug of iOS?

like image 308
Kof Avatar asked Jul 04 '12 04:07

Kof


People also ask

What is local notification?

Local notifications are scheduled by an app and delivered on the same device. They are suited for apps with time-based behaviors, such as calendar events. When you run your app on a device with Android OS 8.0 or above, Kony uses default channels that are mentioned in the localnotificationconfig.

What is local notification in IOS?

Use local notifications to get the user's attention. You can display an alert, play a sound, or badge your app's icon. For example, a background app could ask the system to display an alert when your app finishes a particular task. Always use local notifications to convey important information that the user wants.

Why are my apps not showing in notifications?

Cause of Notifications Not Showing up on AndroidEither system or app notifications are disabled. Power or data settings are preventing apps from retrieving notification alerts. Outdated apps or OS software can cause apps to freeze or crash and not deliver notifications.


1 Answers

Did you check How does UIApplication cancelAllLocalNotifications work between app updates? It doesn't have definitive answers, but maybe it would be useful.

Try to find out what's so special about the customer that experience this:

  • Is it always the same customers who experience this behavior?
  • Which iOS version they use?
  • How are they using you app differently? Have a lot of notification scheduled?
  • How are they making the update? (over-the-air, sync, etc.)
like image 88
Yasei No Umi Avatar answered Oct 19 '22 08:10

Yasei No Umi