richsage / RMSPushNotificationsBundle

NOT MAINTAINED! ⛔️ Push notifications/messages for mobile devices. Supports iOS, Android (C2DM, GCM), Blackberry and Windows Mobile (toast only). A Symfony2 bundle.
MIT License
321 stars 152 forks source link

Documentation Insufficient #52

Open ghost opened 10 years ago

ghost commented 10 years ago

We should add better documentation for this bundle. iOS Feedback is not specified in README docs, or how to handle responses, from both APN and GCM servers.

richsage commented 10 years ago

Sure - I've just had zero time this year unfortunately to develop the bundle as I'd have liked to! As always, pull requests are welcome if you have any documentation to add, no matter how rough - anything is better than nothing :-)

richsage commented 10 years ago

There's some basic documentation added about the iOS Feedback service now.

pculka commented 8 years ago

Is it possible to make the documentation usable for GCM?

richsage commented 8 years ago

@pculka what specifically did you need adding? The concept is:

$message = new AndroidMessage()
$message->setGCM(true);
$message->setDeviceIdentifier("yourGCMtoken");
$message->setData(["foo" => "bar"]);

$container->get('rms_push_notifications')->send($message);
pculka commented 8 years ago

@richsage yup, that exactly :) thanks :) was already browsing through the code how to properly set the data etc what to send. thanks

richsage commented 8 years ago

@pculka ah great - that is all in the README, but split into an iOS example and the setGCM() bit separately :-)

pculka commented 8 years ago

@richsage well in the iOS you are using $message->setMessage('Oh my! A push notification!'); instead $message->setData([]); and the difference in those is confusing

richsage commented 8 years ago

@pculka ah, with you now! Sure - I'll make a note to put that above snippet in the README then in that case.