parse.com-php-library icon indicating copy to clipboard operation
parse.com-php-library copied to clipboard

I am trying to send a push notification using query where objectId equals to

Open venkatiiitb opened this issue 10 years ago • 1 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

venkatiiitb avatar Sep 14 '14 04:09 venkatiiitb

You should do something like this:

$params = array(
                    'object' => array(
                        'where' => array(
                            'objectId' => array('$in' => $ids)
                        ),
                        'data' => $data,
                    )
                );
$request = $parse_client->notification($params);

nicobistolfi avatar Nov 03 '14 15:11 nicobistolfi