bianjunhui преди 2 години
родител
ревизия
4279af4e0b
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      application/api/controller/Message.php

+ 2 - 0
application/api/controller/Message.php

@@ -74,6 +74,8 @@ class Message extends Api
         $notification->setIncludedSegments([$segment]);
         $notification->setIosBadgeType('Increase');
         $notification->setIosBadgeCount(1);
+        $notification->setIsIos(true);
+        $notification->setContentAvailable(true);
         $data['push_para']=$url;
         $data['push_type']=$type;
         $data['title']=$title;