gcmBuilder.addData("badge", "" + message.getBadge());
// if present, apply the time-to-live metadata:
int ttl = pushMessage.getConfig().getTimeToLive();
if (ttl != -1) {
gcmBuilder.timeToLive(ttl);
}
// iterate over the missing keys:
Set<String> keys = message.getUserData().keySet();
for (String key : keys) {