-
Notifications
You must be signed in to change notification settings - Fork 21
Added the ability to send GCM messages to iOS #9
Added the ability to send GCM messages to iOS #9
Conversation
Is this already proposed upstream? |
I think it was introduced in GCM 3.0. Here it's a article in google developers portal: This notification I received on iOS with the code in this pull request. |
Thanks, meant that it perhaps makes sense to add this to the zend package directly? |
Yes, I first look for that on the zend library. But I found this issue (zendframework/ZendService_Google_Gcm#14) without answer from a long time and still open. Maybe it's better to use another library or even write the code all here. |
Could tot Fix The cs issue and add a test? |
Cool, and this doesn't change anything on android? |
I did many tests sending notifications individually, for both devices and only for iOS and it worked every time. Also I researched and didn't find any breaking change on that too. |
Thanks! |
Awesome. Could you tag another release of the package? |
I added a branch-alias so you should be able to require |
Thanks! |
GCM can send push messages to iOS devices too. For that, a new 'notification' key is needed.
Since
ZendService\Google\Gcm\Message
doesn't provice this key, I extended the class, added the property and rewrite thetoJson
method.Also change the Packet that
GcmChannel
creates.