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

Can not get responses from GCM #32

Closed mrzepinski closed 10 years ago

mrzepinski commented 11 years ago

It is not possible to get responses from GCM using current version.

We inject service like this: $this->container->get('rms_push_notifications') so we use RMS\PushNotificationsBundle\Service\Notifications and there is no method like getResponses() which is in RMS\PushNotificationsBundle\Service\OS\AndroidGCMNotification.

I tried to use it and every time I received an exception.

ZhukV commented 11 years ago

This is problem have in iOS devices =((

ZhukV commented 11 years ago

I want replace code to AppleApnPush code for this project!

richsage commented 11 years ago

Sorry for the delay in this - personal circumstances dictated otherwise :-( I'm working on a getResponses() implementation at the moment, I'll PR when it's hopefully ready :-)

verdet23 commented 10 years ago

47, #45

malisetti commented 10 years ago

Can we get the responses of sent gcm messages now?

richsage commented 10 years ago

Yes, you should be able to to now. The following services support the getResponses call:

Android C2DM hasn't had it added yet, neither has Blackberry.

To use:

/** @var array */
$responses = $container->get("rms_push_notifications")->getResponses($osType);

where $osType is one of the following: