极光推送笔记


相关信息

下载手机客户端

  • 推送设置 -> Android -> 扫描下载安装包

使用实例

$client = new \JPush\Client($app_key, $master_secret);
$appKey = '9961328e49f4eda0952f99c7';
$masterSecret = 'fb8e56369d35f3dbc0e3b246';
$client = new \JPush\Client($appKey, $masterSecret);

$pusher = $client->push();
$pusher->setPlatform('all');
$pusher->addAllAudience();
$pusher->setNotificationAlert('Hello World!');
try {
    $pusher->send();
} catch (\JPush\Exceptions\JPushException $e) {
    // try something else here
    print $e;
}

安装教程

Java SE Development Kit 8u152