Hi, we're using the PHP library and want to programatically send a silent notification that just sends sets a badge counter for our application; but it seems we must specificy a notification text (causing the notification to show) in order for the notification to be delivered? How can we only send the badge data? This is what we try, which works on iOS but not Android:
$response = $airship->push()
->setAudience($userselection)
->setNotification(P\notification(
"",
array("ios"=>P\ios(null, $badges, null, false, null, null), "android"=>P\android(null,null,null,null,null,array("badges" => $badges)))))
->setDeviceTypes(P\deviceTypes('ios', 'android'))
->send();
Comments
1 comment