我正在尝试将特定链接(使用JSON)从parse.com推送到我的应用程序。当我发送example.com/breaking_Somethign.html时,我的应用程序将打开www.example.com。我想我需要在AppDelegate.swift文件中做一些事情。任何人都可以告诉我我需要添加什么。
答案 0 :(得分:0)
您需要将以下代码添加到AppDelegate.swift,然后使用PFPush.handlePush处理推送
func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) {
PFPush.handlePush()
}
希望这有帮助!