I have a custom "Installation" called "organization_id"
When I run the filter from the Admin Panel to send a push with "organization_id" of 1, it works, however when I use the PHP SDK, see code, it gives me "You sent this push notification to 0 recipients."
ParseClient::initialize($app_id, $rest_key, $master_key);
$query = ParseInstallation::query();
$query->equalTo("organization_id", "1");
$data = array("alert" => "Name : Message");
ParsePush::send(array(
'data' => $data,
'where' => $query
));
The "full target" for the push that worked, from the admin panel is
Targeting : organization_id is "1"
deviceType is "android"
Full target : { "organization_id": "1", "deviceType": "android" }
For the one that doesn't work, from the PHP SDK, is:
Targeting : where advanced operator (organization_id "1")
deviceType is any of "android", "winphone" or "js"
Full target : { "where": { "organization_id": "1" }, "deviceType": { "$in": [ "android", "winphone", "js" ] } }