text #inAppMessage #pushNotification

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text #inAppMessage #pushNotification相关的知识,希望对你有一定的参考价值。

// Push notification
if #available(iOS 10.0, *) {
    let center = UNUserNotificationCenter.current()
    center.requestAuthorization(options: [.badge, .alert , .sound]) { (granted, error) in
        UIApplication.shared.registerForRemoteNotifications()
    }
} else {
    let type: UIUserNotificationType = [UIUserNotificationType.badge, UIUserNotificationType.alert, UIUserNotificationType.sound]
    let setting = UIUserNotificationSettings(types: type, categories: nil)
    UIApplication.shared.registerUserNotificationSettings(setting)
    UIApplication.shared.registerForRemoteNotifications()
}
  

以上是关于text #inAppMessage #pushNotification的主要内容,如果未能解决你的问题,请参考以下文章

text #inAppMessage #microphone

text #inAppMessage #pushNotification

Firebase inAppMessaging 事件未被捕获

iOS:将 Firebase InAppMessaging 与 Cordova 项目集成

Firebase InAppMessaging 使用“-[NSBundle initWithURL:]: nil URL argument”使我的项目崩溃

不允许 Safari 推送通知