极光推送IOS正式版本别名推送怎么推送不了

hmkjwh
2018-06-22 12:30 1.4k 0
$client = new \JPush\Client("111111111111", "11111111111111111");
$result = $client->push()
    ->setPlatform('all')
    ->addAlias($alias)
    ->addTag(array('yueshao'))
    ->androidNotification($content, [
            'extras' => [
                'type' => "order_info",
                'order_number'=>$order_number
                ]
            ])
    ->iosNotification($content, [
            'sound' => 'sound',
            'badge' => '0',
            'extras' => [
                'type' => "order_info",
                'order_number'=>$order_number
                ]])
    ->options(array(
            "apns_production" => true  //true表示发送到生产环境(默认值),false为开发环境
            ))
    ->send();

1个回答

热门排序