【发布时间】:2016-09-21 19:43:42
【问题描述】:
我想在我的 iOS 应用中使用通知 我阅读了很多教程,并使用了这个: http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1
我的代码是:
var types: UIUserNotificationType = UIUserNotificationType.Badge |
UIUserNotificationType.Alert |
UIUserNotificationType.Sound
var settings: UIUserNotificationSettings = UIUserNotificationSettings( forTypes: types, categories: nil )
application.registerUserNotificationSettings( settings )
application.registerForRemoteNotifications()
我收到了这个错误: 找不到应用程序的有效“aps-environment”权利字符串
我搜索了很多,我使用了所有可能的解决方案,我再次重试,但没有任何改变!
【问题讨论】:
标签: ios notifications