I
I
Ilya2015-01-07 13:52:04
PHP
Ilya, 2015-01-07 13:52:04

How to work with push in parse?

Good afternoon. Are there any manuals in Russian on how to work with push notifications in parse?
It's not very clear in the official documentation.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2015-01-07
@ArtMavir

Send a post request, what else needs to be described there. Even the SDK is https://github.com/ParsePlatform/parse-php-sdk
in short

$curl = new Curl();
$curl->setHeader('X-Parse-Application-Id','ONslZj4aWM**********************rmppeR');
$curl->setHeader('X-Parse-REST-API-Key','VYHVACjA5w***************************alrRo8zjf');
$curl->setHeader('Content-Type','application/json');
$curl->post("https://api.parse.com/1/push", '{ "channels": [ "Giants" ], "data": { "alert": "сообщение" } }');
$curl->close();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question