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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -