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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -