【发布时间】:2017-07-13 09:10:49
【问题描述】:
如果我在 ios 10.0 中实现推送通知的方法
@available(iOS 10.0, *)
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void)
{
completionHandler(UNNotificationPresentationOptions.alert)
}
然后它会显示所有通知, 所以,我的问题是如何防止显示特定的推送通知,例如(在另一个设备上登录)我只处理该特定推送的代码
【问题讨论】:
标签: ios swift3 push-notification notifications apple-push-notifications