在 Onesignal api 中,我在字段数组中添加了 isIos => true,ios_badgeType => Increase,ios_badgeCount => 1,content_available => true 。但徽章计数始终保持为 1,不会随着多条消息而增加。
这是我的有效负载详细信息:$fields = array( 'app_id' => "xxxxxx", 'included_segments' => array('All'), 'data' => array( "notification_type" => "update" ), 'contents' => $content, 'subtitle' => $subtitle, 'headings' => $heading, 'isIos' => true, 'ios_badgeType' => "Increase", 'ios_badgeCount' => 1, 'content_available' => true );