2015-09-03 68 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測試完全無用。