gpt4 book ai didi

ios - iOS 9 中的 UILocalNotification iBeacon 应用提示响了 2 次,但列表中只有一个通知

转载 作者:行者123 更新时间:2023-11-29 01:37:56 24 4
gpt4 key购买 nike

iOS9又很奇怪了。这个在我的 iBeacon 应用程序中。当我只发送了一次位置通知但在 - (void)locationManager:(CLLocationManager *)manager didDetermineState:(CLRegionState)state forRegion:(CLRegion *)region 中收到了 2 次提示音。

如果我在 didDetermineState 之外或在 iOS8 中发送本地通知,它只提示一次。

非常奇怪,无论我使用 presentLocalNotificationNow 还是 scheduledLocalNotifications,都遇到了同样的问题。

我会为 iOS9 疯狂......

最佳答案

我终于得到了答案。如果我尝试在 iOS9 中执行两次 registerUserNotificationSettings。是的,我会在一次本地通知中收到两次提示音。也许这是 iOS9 的一个错误。

关于ios - iOS 9 中的 UILocalNotification iBeacon 应用提示响了 2 次,但列表中只有一个通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32757651/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com