mercredi 30 décembre 2015

Parse WHERE php

I using http://ift.tt/USpUaq. I want to send notify 2 other devices. But it's only send notify for device token is 'abcdef'. How to send notify 2 other devices? Thanks all,

    $query = ParseInstallation::query();
    $query->equalTo('deviceToken', 'xxxxx');
    $query->equalTo('deviceToken', 'abcdef');

    $data = [
        'data'  => ['alert' => 'Hello, this is a test'],
        'where' => $query,
        ];
    ParsePush::send(
        $data
    );



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire