I am trying to send a push notification using query where objectId equals to
venkatiiitb opened this issue · comments
'vpdCkLIeNtQQBNTIyroFqA7Lu4HXdYzvvxgvIZK4',
'restkey' => 'flkexIKpXRUmac6ofZvIPmbI77tEGb1u75F6Bi3O'
));
$params = array(
'objectId' => 'KPgFA2H1YG',
'object' => array(
'data' => array(
'alert' => 'This is alert message from venkat!',
'sound' => 'default',
)
)
);
$request = $parse->notification($params);
print_r($request);
?>
But it's giving me errors what i am doing wrong
You should do something like this:
$params = array(
'object' => array(
'where' => array(
'objectId' => array('$in' => $ids)
),
'data' => $data,
)
);
$request = $parse_client->notification($params);