腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(696)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
2
回答
取消
UNNotificationRequest
因为现在不推荐UILocalNotification,所以我将代码移到了新的
UNNotificationRequest
API中。因此,我的问题是:是否有一种有效的方法来删除与
UNNotificationRequest
一起排队的通知,还是应该忽略那些弃用警告?
浏览 14
修改于2017-08-11
得票数 5
回答已采纳
1
回答
使用
UNNotificationRequest
返回的计算属性不能将“Void”类型的返回表达式转换为返回类型“[
UNNotificationRequest
]”
因此,我想我可以尝试创建一个包含所有计划通知的数组的计算属性,但是我认为有一些事情我不理解,因为我得到了以下错误: center.getPendingNotificationRequests { notificationsvar notifications: [
UNNotificationRequest
] { var retrievedNo
浏览 3
提问于2020-05-12
得票数 0
回答已采纳
1
回答
访问
UNNotificationRequest
对象的预定日期
我试图找到一个
UNNotificationRequest
对象的预定触发日期。UNUserNotificationCenter.current().getPendingNotificationRequests { (notifications) in } 然后,我尝试访问每个
UNNotificationRequest
对象的触发日期。
浏览 2
提问于2016-11-21
得票数 10
回答已采纳
1
回答
UNNotificationRequest
中的开始和结束日期
如何使用未来的开始日期(带时间)和结束日期(带时间)调度本地通知请求。有没有可能,因为我在框架中看不到任何变量
浏览 5
提问于2021-09-02
得票数 0
2
回答
我怎样才能使
UNNotificationRequest
立即流行?
我正在使用
UNNotificationRequest
,我希望在单击该按钮时立即弹出通知。但在这种情况下,当我退出应用程序时,它就会出现。let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 5, repeats: false) let request =
UNNotificationRequest
浏览 3
修改于2017-04-26
得票数 11
1
回答
是否可以有多个未完成的
UNNotificationRequest
?
我的应用程序为将来的时间安排了多个
UNNotificationRequest
。每个请求都有一个唯一的标识符。-(
UNNotificationRequest
*)triggerNotifications: (NSString *)identifier : (NSTimeInterval) interval{trigger = [UNCalendarNotificationTrigger triggerWithDateMatchingComponents:components repeats:NO];
UNNotificationRequest<
浏览 1
提问于2017-11-07
得票数 0
1
回答
如何获取挂起
UNNotificationRequest
的剩余时间?
到目前为止,在向包含
UNNotificationRequest
的UNUserNotificationCenter添加了一个UNTimeIntervalNotificationTrigger之后(下面是我实现的代码trigger = UNTimeIntervalNotificationTrigger(timeInterval: 10.0, repeats: false) let request =
UNNotificationRequest
浏览 8
修改于2020-06-20
得票数 2
1
回答
苹果用于
UNNotificationRequest
标识符的文档是否错误?
至于identifier,说: 所以我猜苹果文档应该说:
浏览 5
修改于2018-03-04
得票数 0
1
回答
从请求中检索
UNNotificationRequest
声音名称
UNTimeIntervalNotificationTrigger(timeInterval: timeInt, repeats: true) let request =
UNNotificationRequest
var notification:
UNNotificationRequest
let sound = notification.content.sound!.
浏览 4
提问于2020-10-28
得票数 0
1
回答
如何在
UNNotificationRequest
中设置重复间隔和火灾日期
但是如前所述,API在iOS中被否决了,现在,10.0需要使用UserNotifications框架的
UNNotificationRequest
。如何使用UserNotifications框架的
UNNotificationRequest
实现这一点。因为在新的api中,我们可以使用触发器UNCalendarNotificationTrigger和UNTimeintervalNotificationTrigger来启动
UNNotificationRequest
浏览 6
修改于2017-11-06
得票数 4
回答已采纳
1
回答
当用户点击通知时显示来自
UNNotificationRequest
的ViewController
trigger = UNCalendarNotificationTrigger(dateMatching: dateComponents, repeats: true) let request =
UNNotificationRequest
浏览 13
修改于2018-01-25
得票数 1
回答已采纳
1
回答
点击的操作按钮的Swift
UNNotificationRequest
标识符本地通知
是否可以获取点击的本地通知按钮的
UNNotificationRequest
标识符或有关该通知的任何其他信息?也许是通过委托? 谢谢你
浏览 55
提问于2021-09-06
得票数 0
1
回答
如何设置
UNNotificationRequest
的自定义重复间隔?
我正在实现一个自定义的重复提醒,如默认提醒应用程序。在这里,我不知道如何设置每N天/周/月/年的重复间隔like Trigger,即,从现在起每第4天/周/月/年触发通知。 下面是我对interval =1的实现 if type == .daily{ }else if type == .weekly{ dateCo
浏览 36
修改于2019-07-06
得票数 1
3
回答
本地通知(
UNNotificationRequest
)在iOS 10中的限制
我知道UILocalNotification.的本地通知限制为64它是用写的。但是UILocalNotification在iOS 10中被否决了。相反,苹果建议使用iOS 10但是并没有提到限制通知的数量。我找到了这个,但是它没有指向Apple之类的链接(这只是一个观点)。有没有人确切地知道本地通知的限制?也许有人知道Dev Docs的链接,或者苹果对此有官方的回应吗?
浏览 14
修改于2017-05-23
得票数 12
1
回答
UNNotificationRequest
只在iPhone解锁时播放自定义声音。
我的应用程序正在下载一个.wav文件并将其移动到Library/Sounds,然后通过
UNNotificationRequest
调度一个带有该声音的文件名的本地通知。UNTimeIntervalNotificationTrigger(timeInterval: 60, repeats: true)let request =
UNNotificationRequest
浏览 1
修改于2018-03-12
得票数 2
1
回答
如何使用for循环获取
UNNotificationRequest
数组来填充SwiftUI列表视图?
var notificationArray = [
UNNotificationRequest
]() print("getNotifications
浏览 17
修改于2020-10-26
得票数 2
回答已采纳
2
回答
UNNotificationRequest
每天在特定时间发送本地通知
由于UILocalNotification在iOS10中被废弃,我很难理解如何将下面的代码更新到
UNNotificationRequest
框架中。我基本上是让用户在他们选择的时间安排一天的通知。
浏览 2
修改于2020-10-05
得票数 1
回答已采纳
1
回答
检索
UNNotificationRequest
的下一个请求日期和相关ID
nextRequest)) 我认为这个方法可能会提供一个更优雅的解决方案,但正如邓肯在下面指出的那样,UNNotificationRequests是不可比拟的:如果有人有更好的解决办法,那就告诉我。
浏览 0
修改于2018-04-05
得票数 1
回答已采纳
1
回答
使用
UNNotificationRequest
(UserNotificationFramework)只对iOS上的数据进行本地通知
下面是添加到UNMutableNotificationContent中以触发通知的
UNNotificationRequest
的相关部分。
浏览 3
提问于2017-09-01
得票数 3
回答已采纳
1
回答
UNNotificationRequest
需要唯一的标识符,但对重复的标识符也会触发。
UNNotificationSound.default()let request =
UNNotificationRequest
(identifier: "testing", content: content, trigger: nil)每次使用相同的
UNNotificationRequest
浏览 1
修改于2022-04-24
得票数 3
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券