add mutable_content flag to ios push

This commit is contained in:
Easy 2022-04-19 19:16:36 +08:00 committed by GitHub
parent 6d2b30901b
commit 411f768156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ function ios_send($is_clip, $device_token, $text, $desp = '', $dev = true)
$topic = intval($is_clip) == 1 ? config('services.go_push.ios_clip_topic') : config('services.go_push.ios_topic');
$notification->topic = $topic;
$notification->sound = ['volume'=>2.0];
$notification->mutable_content = 1;
$json = ['notifications'=>[$notification]];
$client = new GuzzleHttp\Client();