作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
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/
我是一名优秀的程序员,十分优秀!