NotificationPusher
NotificationPusher copied to clipboard
Standalone PHP library for easy devices notifications push.
When is the FCM HTTP v1 API supported? url: https://firebase.google.com/docs/cloud-messaging/server?authuser=0#choose Example: ``` curl -X POST -H "Authorization: Bearer ya29.ElqKBGN2Ri_Uz...HnS_uNreA" -H "Content-Type: application/json" -d '{ "notification": { "title": "FCM Message", "body":...
The library always creates "ServiceAlert" object ``` php $alert = new ServiceAlert( $message->getText(), $message->getOption('actionLocKey'), $message->getOption('locKey'), $message->getOption('locArgs'), $message->getOption('launchImage'), $message->getOption('title'), $message->getOption('titleLocKey'), $message->getOption('titleLocArgs') ); .... $serviceMessage = new ServiceMessage(); $serviceMessage->setAlert($alert); ``` https://github.com/Ph3nol/NotificationPusher/blob/master/src/Sly/NotificationPusher/Adapter/Apns.php#L172, meanwhile...
as you can see in http://gcm-client.readthedocs.org/en/latest/intro.html there is different result on response - new_reg_id - not_registered - err_code - needs_retry can we get this on information by using this notification...