Skip to content
This repository has been archived by the owner on Feb 25, 2018. It is now read-only.

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

Open
venkatiiitb opened this issue Sep 14, 2014 · 1 comment

Comments

@venkatiiitb
Copy link

'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

@nicobistolfi
Copy link

You should do something like this:

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants