极光推送苹果生产环境收不到推送信息


        $response = $client->push()
            ->setPlatform(array('ios', 'android'))
            ->addAllAudience()
            ->androidNotification($title, array(
            'title' => $title,
            'extras' => array(
                'type' => 'reg'
            ),
        ))->iosNotification($title, array(
            'sound' => 'sound.caf',
        ))->options([
                'apns_production' => true
            ])->send();

核心代码:

'apns_production' => true

极光推送苹果生产环境收不到推送信息_第1张图片

原理:切换到生产环境

https://docs.jiguang.cn/jpush/client/iOS/ios_faq/

 

你可能感兴趣的:(PHP)