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
));
answered Oct 22, 2014 at 10:23
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

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.