我想通过对象ID向特定设备发送解析通知。
PHP的API调用是:
<?php
$url = 'https://api.parse.com/1/push';
$appId = //app id
$restKey = // rest key
$target_device = 'TARGET_INSTALLATION_OBJECT_ID_HERE'; // using object Id of target Installation.
$push_payload = json_encode(array(
"where" => array(
"objectId" => $target_device,
),
"data" => array(
"alert" => "This is the alert text."
)
));
// curl exec...
如何通过javascript获取TARGET_INSTALLATION_OBJECT_ID_HERE(因为我使用的是phonegap)?
由于