PHP pushwoosh send -
i have code :
public static function sendmessage($smessage, $atokens, $sdeeplink = null){ # create request $orequest = createmessagerequest::create()->addnotification(notification::create()->setcontent($smessage)->setdevices($atokens)->setsenddate('now')); # call rest web service $oresponse = self::createpushinstance()->createmessage($orequest); if($oresponse->isok()){ return true; } # add logs self::addlogs($oresponse, 'sendmessage'); return false; }
how prevent not send users registered, 2 example ? possible ? tried push sent registered devices (10.000).
Comments
Post a Comment