Home >Backend Development >PHP Tutorial >Android Push - Aurora Push

Android Push - Aurora Push

WBOY
WBOYOriginal
2016-07-25 08:50:35925browse
Android推送之极光推送
                   
                               
                                       
                                       
            
  1. include('jpush.php');
  2.                         $n_title   =  '123ios';
  3.                         $n_content =  '123ios123ios123ios123ios123ios123ios';       
  4.             $appkeys='48dabb0655de51355ff7536c';
  5.             $masterSecret='80cb449b8e137f411ede3d45';
  6.             $sendno = 4;
  7.             $receiver_value = '';                       
  8.                         $platform = 'android,ios' ;
  9.                         $msg_content = json_encode(array('n_builder_id'=>0, 'n_title'=>$n_title, 'n_content'=>$n_content));        
  10.                         $obj = new jpush($masterSecret,$appkeys);                         
  11.                         $res = $obj->send($sendno, 4, $receiver_value, 1, $msg_content, $platform);               
  12.                        
  13.                         print_r($res);
  14.                         exit();       
复制代码


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Test code efficiencyNext article:Test code efficiency