2015-09-03 37 views
6

我已经设置了我的应用程序接收来自解析发送推送通知,以下解析文档中的所有步骤:解析PFAnalytics不跟踪推打开

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

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

enter image description here

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

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块确实被调用,但没有一个asserts失败,因此PFAnalytics被认为已成功将数据发送给Parse Analytics。

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

回答

0

我已经意识到,如果您要查找的是推打开受跟踪“推打开”事件在分析部分,但没有信息上的单个推活动给予,目前A/B测试完全无用。