I am using this SDK for Parse.com https://github.com/ParsePlatform/parse-php-sdk This is not working for me while sending Push notifications using
$query= ParseInstallation::query();
$query->where('deviceType', 'ios');
parsePush::send(array(
 "where" => $query,
 "data" => array(
 "alert" => "Hello Hello !"
 )
));
Getting This: Fatal error: Call to undefined method ParseInstallation::query() in
1 Answer 1
This is what I am using to send a push notification and it works perfectly. Make sure you've setup in the dashboard the ability to send push notifications from a client.
$notification = "Your notification!";
$query = ParseInstallation::query();
$query->equalTo("deviceType", "ios");
$data = array("alert" => $notification);
ParsePush::send(array(
 "where" => $query,
 "data" => $data
));
 Sign up to request clarification or add additional context in comments.
 
 
 
 1 Comment
Sandy Chahal
 I am also using same code but Getting This: Fatal error: Call to undefined method ParseInstallation::query() in
  Explore related questions
See similar questions with these tags.
lang-php