Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Swift 每 5 天重复一次 LocalNotification
如何每 5 天上午 10 00 重复一次 LocalNotification 我尝试这个 但它不起作用 let content UNMutableNotificationContent content title Hello content
ios
swift
localnotification
unusernotificationcenter
操作按钮未出现在通知 iOS 10 中
我在我的应用程序中使用本地推送通知 在 iOS 10 中为通知添加操作按钮时 它不会出现在通知下方 通知正在显示 但通知底部缺少操作按钮 下面给出了 appdelegate 代码 import UIKit import CoreData i
ios
swift
swift3
unusernotificationcenter
等到使用removePendingNotificationRequests删除来自UNUserNotificationCenter的本地通知 ios 10 swift 3
使用新的本地通知UNUserNotificationCenter 我尝试删除带有一些标识符的通知 UNUserNotificationCenter current removePendingNotificationRequests with
ios
swift3
iOS10
unusernotificationcenter
设备重启后 UNUserNotificationCenter 通知
我一直在网上搜索 看看您安排的通知是否会在设备重新启动后被删除 我发现了不同的意见 所以我开始测试它 这是我注意到的 我安排了 10 分钟后的通知 重新启动手机 没有任何反应 但是 昨天我安排了很多通知 其中一些是当天的 尽管从昨天开始我已
ios
swift
Notifications
unusernotificationcenter
UIApplication.registerForRemoteNotifications() 必须仅从主线程调用
Xcode 9 iOS 11 在注册推送 远程 通知时向我显示错误 警告 这是错误消息 这是我尝试过的代码 let center UNUserNotificationCenter current center delegate self c
ios
swift
pushnotification
swift4
unusernotificationcenter
当应用程序处于非活动状态时(例如在后台播放音乐)如何调用函数?
我正在制作一个音乐流闹钟 音乐在用户选择的持续时间内流动 包括在后台 并且在持续时间结束时 除了本地通知之外 还会播放自定义警报声音 简而言之 1 设置计时器 2 本地通知启动 3 流媒体音乐停止 4 闹钟播放 我可以做到 1 和 2 但我
在 iOS 10 中添加本地通知 - Swift 3
所以我一直在尝试向新的 UNUserNotificationCenter 添加通知 但我似乎没有得到它 我的视图控制器有一个操作 IBAction func sendPressed sender AnyObject let content
swift
swift3
uilocalnotification
iOS10
unusernotificationcenter
为什么我的本地通知在 iOS 10 中没有在前台触发?
我试图理解为什么本地通知没有显示在前台 我相信我添加了所有正确的代码来允许此功能 但当我的应用程序位于前台时没有显示横幅 这是我添加的内容AppDelegate swift import UserNotifications UIApplic
ios
swift
swift3
unusernotificationcenter
Swift - 交付应用程序上的本地通知图标徽章编号更新在后台
我试图弄清楚如何在传递本地通知时动态更新图标徽章编号 在安排时注册徽章号码不是一个选项 因为如果我在发送任何通知之前注册两个或多个通知 UIApplication shared applicationIconBadgeNumber this
ios
swift
uilocalnotification
unusernotificationcenter
在 swift 4 中未调用通知中心观察者
我正在尝试从 appdelegate 发布通知 NotificationCenter 并在另一个视图中接收通知 但未收到通知 发布通知 func xmppStream sender XMPPStream didReceive message
ios
swift
Notifications
unusernotificationcenter
UNUserNotificationCenter Swift - 在特定情况下不会触发本地通知
我在应用程序中使用本地通知时遇到问题 我正在安排带有自定义内容和自定义操作类别的本地通知 它在 iOS 11 中进行调度和触发 但在 iOS 10 中则不然 根据文档 它应该也可以在 iOS 10 中运行 为什么我的代码在这种特定情况下不起
如何响应 UNUserNotification 上的点击?
我正在使用新的UNUserNotificationiOS 10 中的框架 我可以看到如何添加操作按钮 但是当用户点击通知本身时我如何响应 就我而言 它将是带有一些文本的图像 默认行为是应用程序打开 我可以使用自定义代码来检测我的应用程序是否
ios
Notifications
unusernotificationcenter
本地通知在 ios10 中不触发
我在用着UNUserNotificationCenter对于 ios 10 为了进行测试 我将本地通知设置为从当前时间开始 10 秒 这就是我尝试过的 void viewDidLoad super viewDidLoad UNUserNot
ios
Objectivec
iOS10
usernotifications
unusernotificationcenter
如何在 Swift 中取消本地通知触发器
我有一个触发器向用户显示通知 let content UNMutableNotificationContent content title Title content body Body content sound UNNotificati
swift
unusernotificationcenter
unnotificationrequest