From 411f768156d21627efed42d6ce53a402898015ab Mon Sep 17 00:00:00 2001 From: Easy Date: Tue, 19 Apr 2022 19:16:36 +0800 Subject: [PATCH] add mutable_content flag to ios push --- api/app/Http/Helpers.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/app/Http/Helpers.php b/api/app/Http/Helpers.php index dd2170b..bcf91c3 100644 --- a/api/app/Http/Helpers.php +++ b/api/app/Http/Helpers.php @@ -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();