This PR removes the Message abstraction, and moves validation of fields to the Sender.
It also allows for a new and nicer instantiation syntax:
var gcm = require("node-gcm")("<API KEY>");
gcm.send(...);
It also removes the mapping of property names we used to have. For example, the field collapseKey is now simply called collapse_key, just as it is on the FCM serverside. This reduces code complexity significantly.
This PR removes the Message abstraction, and moves validation of fields to the Sender.
It also allows for a new and nicer instantiation syntax:
It also removes the mapping of property names we used to have. For example, the field
collapseKey
is now simply calledcollapse_key
, just as it is on the FCM serverside. This reduces code complexity significantly.