小智 28
使用Xcode8,修复方法是简单地启用功能中的Keychain Sharing
打开app.xcworkspace文件,选择Target> Capabilities> Enable'Keychain sharing'
Rac*_*wat 27
此问题的可能原因:
Phi*_*hil 11
确保:
此外,你必须遵循这些tutos:
并且不要忘记向用户请求权限只是在您的应用程序中添加(例如在AppDelegate文件中,或在其他ViewController中):
let notificationTypes: UIUserNotificationType = [UIUserNotificationType.Alert, UIUserNotificationType.Badge, UIUserNotificationType.Sound]
let pushNotificationSettings = UIUserNotificationSettings(forTypes: notificationTypes, categories: nil)
application.registerUserNotificationSettings(pushNotificationSettings)
application.registerForRemoteNotifications()
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
29578 次 |
最近记录: |