Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/105.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 使用Daviennun/laravel推送通知的静默推送通知_Ios_Laravel_Notifications_Apple Push Notifications_Silentpush - Fatal编程技术网

Ios 使用Daviennun/laravel推送通知的静默推送通知

Ios 使用Daviennun/laravel推送通知的静默推送通知,ios,laravel,notifications,apple-push-notifications,silentpush,Ios,Laravel,Notifications,Apple Push Notifications,Silentpush,我正在尝试使用向iOS发送静默推送通知。我只想知道在哪里添加'content-available'=>1。 这是我的密码: $notification = PushNotification::Message( 'Message.', array( 'content-available' => 1, 'custom' => array('custom data' => arra

我正在尝试使用向iOS发送静默推送通知。我只想知道在哪里添加
'content-available'=>1
。 这是我的密码:

$notification = PushNotification::Message(
            'Message.',
            array(
            'content-available' => 1,
                'custom' => array('custom data' => array(
                    'customKey'=> 'customValue',
                    'abc' => '',
            ))
        ));

你所说的静默推送通知是什么意思?静默推送通知是在用户设备上传送到应用程序的隐藏指令。无声通知不会像典型的推送通知那样引起与用户的交互,而是简单地将特定的数据集悄悄地传递给应用程序,从而允许应用程序对该数据进行操作。资料来源:[链接]