0

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

4

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

I am also using same code but Getting This: Fatal error: Call to undefined method ParseInstallation::query() in

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.