getIcoming in UrbanAirship for Phonegap

use*_*478 25 javascript urbanairship.com ios cordova

当我的应用程序最小化时,当我在手机上收到推送通知时,如果我点击通知启动我的应用程序,请致电

window.pushNotification.getIncoming( callback )
Run Code Online (Sandbox Code Playgroud)

返回{"message":"","extras":{}}而不是我点击的通知的数据.

这是正确的行为吗?如果有,有办法获得我想要的信息吗?

Nav*_*enG 1

使用以下代码进行 PhoneGap 推送通知

window.LocalNotification.add({
                    message : "hello",
                    ticker : "New Notification",
                    repeatDaily : false,
                    id : 4
                }, newNotification);


function newNotification(e) {
if (e != null && e.event == "newLocalNotification") {
    // add my Appointment page
    window.location = "#redirectPageId";

}
Run Code Online (Sandbox Code Playgroud)

}

使用“redirectPageId”进行重定向页面