0
개체 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...
어떻게 (내가 폰갭을 사용하고 있기 때문에) 자바 스크립트에 의해 TARGET_INSTALLATION_OBJECT_ID_HERE을받을 수 있나요?
덕분에이 폰갭 플러그인을 사용할 수 있습니다 안드로이드에 대한