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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -