This pull request adds a method #send_with_notification_key which formats the request correctly.
I haven't added any further tests as I'm not that familar with how you are mocking the requests, but the few existing tests are passing ok.
I'll try to get a chance to add some tests at some stage.
fix for #17 - There is a bug in Google documentation. The request should include the notification key like this
rather than
The request will also fail if it includes a
registration_ids
array, even if it is empty.See this StackOverflow post for more - http://stackoverflow.com/questions/19720767/gcm-user-notifications-missing-registration-ids-field/25183892#25183892
This pull request adds a method #send_with_notification_key which formats the request correctly.
I haven't added any further tests as I'm not that familar with how you are mocking the requests, but the few existing tests are passing ok. I'll try to get a chance to add some tests at some stage.