Apple,推送通知,解析,错误:无法注册

时间:2016-02-01 17:23:46

标签: ios swift parse-platform push-notification appdelegate

我收到错误消息"无法注册"当我运行我的应用程序时,我无法在Parse中看到安装类。不知道我在哪里做错了,因为我遵循Parse的指令,除了appDelegate中didFinishLaunchingWithOptions的功能,因为我有Facebook登录。另外,在我的应用中 - >目标 - >一般情况下,身份下没有显示错误消息,所以我想我的配置文件是正确的。对于Apple会员中心的App ID,我看到推送通知的分发仍然是可配置的。

有什么建议吗?感谢。

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

    Parse.enableLocalDatastore()

    Parse.setApplicationId("......", clientKey: ".........")

    let notificationTypes:UIUserNotificationType = [.Alert, .Badge, .Sound]

    let notificationSettings:UIUserNotificationSettings = UIUserNotificationSettings(forTypes: notificationTypes, categories: nil)

    application.registerUserNotificationSettings(notificationSettings)

    application.registerForRemoteNotifications()

    PFFacebookUtils.initializeFacebookWithApplicationLaunchOptions(launchOptions)

    buildUserInterface()

    return FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)

}

enter image description here

1 个答案:

答案 0 :(得分:0)

我遵循了这些指示,它对我有用:https://github.com/ParsePlatform/PushTutorial/tree/master/iOS

此外,Parse明年正在关闭,只是你知道。