欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

Android推送之极光推送

程序员文章站 2022-06-17 12:49:55
...
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. print_r($res);
  13. exit();
复制代码