Parse platform 如何从解析安装中检索设备令牌

Parse platform 如何从解析安装中检索设备令牌,parse-platform,push-notification,migrate,pushwoosh,devicetoken,Parse Platform,Push Notification,Migrate,Pushwoosh,Devicetoken,我已经构建了一个Trigger.io应用程序,并一直在为推送通知使用解析 我现在迁移到pushwoosh以满足推送通知的需要,但是我意识到parse使用安装id来推送通知,而pushwoosh使用设备令牌 我无法从解析中检索设备令牌,因为可用函数仅允许我检索安装id forge.parse.installationInfo(function (info) { //info object only stores the installation id forge.logging.i

我已经构建了一个Trigger.io应用程序,并一直在为推送通知使用解析

我现在迁移到pushwoosh以满足推送通知的需要,但是我意识到parse使用安装id来推送通知,而pushwoosh使用设备令牌

我无法从解析中检索设备令牌,因为可用函数仅允许我检索安装id

forge.parse.installationInfo(function (info) {
    //info object only stores the installation id
    forge.logging.info("installation: "+JSON.stringify(info));
});
但是,对于pushwoosh,我需要服务器端的设备id将消息推送到特定设备

//Notify some devices or a device:
Pushwoosh.notify_devices(message, devices, other_options)

因此,我的问题是,在我将数据从parse迁移到pushwoosh之后,我如何检索所有旧用户的所有设备令牌,以便我可以向使用parse进行通知的用户发送通知消息?

对于Android,您可以使用下面的代码获取
devicetoken
Trigger.io
在其API中没有相同的
JavaScript
包装器。你可以为你的目的建造它

ParseInstallation.getCurrentInstallation().saveInBackground(new SaveCallback() {
    @Override
    public void done(ParseException e) {
        String deviceToken = (String) ParseInstallation.getCurrentInstallation().get("deviceToken");
    }
});

@这有帮助吗?