当应用程序处于前台 Swift 3 时获取本地通知

问题描述显然,现在这可以通过ios10实现:可选funcuserNotificationCenter(_center:UNUserNotificationCenter,willPresent通知:UNNotification,withCompletionHandlercomple

发布:2022-10-16 标签:iosswiftswift3uilocalnotificationunusernotificationcenter


iOS 11 在使用 UNUserNotificationCenter 时因 bundleProxy 崩溃!= nil 错误

问题描述以下代码行是我们的应用突然开始在iOS11/11.0.1/11.0.2/11.1.1/11.2.2上对某些用户崩溃的地方:ThefollowinglineofcodeiswhereourapphassuddenlystartedtocrashoniOS11/11.0.1/

发布:2022-10-16 标签:crashobjective-cios11unusernotificationcenter


当 iOS 10 中的 UNUserNotificationCenterDelegate 收到新通知时,如何删除以前发送的通知?

问题描述这个问题是关于iOS10中新的UserNotifications框架的.ThisquestionisaboutthenewUserNotificationsframeworkiniOS10.我有一个应用,它会在用户在应用中执行特定操作后每半小时安排一次本地通知,从1小时开

发布:2022-10-16 标签:iosnotificationsios10unusernotificationcenter


如何启用/禁用来自应用程序的推送通知?

问题描述在我的应用程序中,我想从我的应用程序本身的设置页面启用/禁用推送通知.有人可以建议我从应用程序的通知中心打开/关闭应用程序状态的解决方案吗?InmyappIwanttoenable/disablepushnotificationfromthesettingspageofm

发布:2022-10-16 标签:iosxcodepush-notificationremote-notificationsunusernotificationcenter


在应用程序内启用或禁用 iPhone 推送通知

问题描述我有一个可以接收推送通知的iphone应用程序.目前,我可以通过转到iphone设置/通知来禁用我的应用的推送通知.Ihaveaiphoneappwhichisenabletoreceivepushnotifications.Currentlyicandisablepus

发布:2022-10-16 标签:iosswiftpush-notificationunusernotificationcenterusernotifications


UIApplication.registerForRemoteNotifications() 只能从主线程调用

问题描述Xcode9(iOS11)在注册推送(远程)通知时向我显示错误/警告.Xcode9(iOS11)showingmeanerror/warningwhileregisteringforPush(remote)notification.这里是错误信息这是代码,我试过了:let

发布:2022-10-16 标签:iosswift4swiftpush-notificationunusernotificationcenter


在 iOS 10 - Swift 3 中添加本地通知

问题描述所以我一直在尝试向新的UNUserNotificationCenter添加通知,但我似乎没有得到它.SoIbeentryingtoaddanotificationtothenewUNUserNotificationCenter,butIdon'tseemtogetit.我

发布:2022-10-16 标签:swiftswift3ios10uilocalnotificationunusernotificationcenter


在应用程序处于前台 Swift 3 时显示本地通知

问题描述显然,现在可以通过ios10实现:optionalfuncuserNotificationCenter(_center:UNUserNotificationCenter,willPresent通知:UNNotification,withCompletionHandlerc

发布:2022-10-16 标签:iosswiftswift3uilocalnotificationunusernotificationcenter


在 Xcode 8/Swift 3.0 中注册推送通知?

问题描述我正在尝试让我的应用在Xcode8.0中运行,但遇到了错误.我知道这段代码在以前版本的swift中运行良好,但我假设在新版本中更改了此代码.这是我尝试运行的代码:I'mtryingtogetmyappworkinginXcode8.0,andamrunningintoan

发布:2022-10-16 标签:iosswift3push-notificationios10unusernotificationcenter


当应用程序在前台时,如何使远程通知出现在通知中心?

问题描述当我的应用程序在前台时,它从我的服务器接收推送通知,触发我的UNNotificationServiceExtension,然后触发userNotificationCenter(_:willPresent:withCompletionHandler:).通知会在应用顶部显示

发布:2022-10-16 标签:iosapple-push-notificationsswiftunusernotificationcenter