ios - 解析 PFAnalytics 不跟踪推送打开

标签 ios swift parse-platform

我已按照 Parse 文档中的所有步骤将我的应用程序设置为接收从 Parse 发送的推送通知:

https://www.parse.com/docs/ios/guide#push-notifications

在我的移动设备上运行时,该应用程序会收到我从 Parse 发送给它的每一个推送通知,但不会跟踪推送打开。这是我在仪表板上看到的:

enter image description here

鉴于PFAnalytics.trackAppOpenedWithLaunchOptions and PFAnalytics.trackAppOpenedWithRemoteNotificationPayload返回各自的BFTasks ,我为他们添加了一个完成 block ,如下所示:

application:didReceiveRemoteNotification 中:

PFAnalytics.trackAppOpenedWithRemoteNotificationPayload(userInfo).continueWithBlock({ (task) -> AnyObject! in

    assert(task.completed, "task should have completed")

    assert(!task.cancelled, "task should not have been cancelled")

    assert(!task.faulted, "task should not complete due to error or exception")

    return task
})

application:didFinishLaunchingWithOptions 中:

PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions).continueWithBlock({ (task) -> AnyObject! in

    assert(task.completed, "task should have completed")

    assert(!task.cancelled, "task should not have been cancelled")

    assert(!task.faulted, "task should not complete due to error or exception")

    return task
})

continuations block 确实被调用了,但是没有一个 asserts 失败,所以 PFAnalytics 应该成功地将数据发送到 Parse Analytics。

为什么我的推送打开并且打开率仍然为零?

最佳答案

Facebook 提交并确认的错误: https://developers.facebook.com/bugs/119817525037600/

关于ios - 解析 PFAnalytics 不跟踪推送打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32382194/

相关文章:

ios - 如何使用 PNG 蒙版剪辑模糊的 UIVisualEffectView?

php - 如何保存多个文件对象以使用php sdk解析后端?

ios - iOS 客户端是否应该在服务器(微服务)失败时重试?

ios - Podspec s.vendored_frameworks 不工作

ios - Cocos2d : GPU having to process the non visible CCSprite quads

ios - Xcode 5,动态原型(prototype)的自定义 UITableViewCell 类

Swift 不需要的 URL 百分比编码

swift - 气化失败

ios - 解析关系中不包含的查询

android - 如何获取设备 token