从App Store更新后,App无法控制本地通知 [英] App lost control over local notifications after being updated from App Store

查看:99
本文介绍了从App Store更新后,App无法控制本地通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在App Store上有一个带有本地通知的应用程序.

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

在对我的应用程序进行的最后4个版本更新中,有些客户遇到了一些奇怪的事情-该应用程序失去了对先前通知的控制,即使更新被

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]!

在与这些客户交流时,我告诉他们关闭提醒功能,该功能执行cancelAllLocalNotifications,但是他们声称会不断收到提醒.

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

此外,重新安装该应用程序不会摆脱旧的通知!好像iOS认为这是一个不同的应用程序.

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!

怎么可能?

更新

3年后,它仍在发生.

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.

任何人都可以解决此问题或证明它是iOS的错误吗?

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

推荐答案

您是否检查了

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:

  • 是否总是有相同的客户经历这种行为?
  • 他们使用哪个iOS版本?
  • 他们如何以不同的方式使用您的应用?安排了很多通知吗?
  • 他们如何进行更新? (无线,同步等)

这篇关于从App Store更新后,App无法控制本地通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆