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
    );



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1PyHxng
via IFTTT

Aucun commentaire:

Enregistrer un commentaire