尝试向带有徽章的多个用户发送FCM
推送,但是registration_ids接受多个ID,但徽章不接受。因此,我无法将不同的徽章分配给不同的registrations_ids
看看link
exec('curl -X POST --header "Authorization: key=AAAA****" --Header "Content-Type: application/json" https://fcm.googleapis.com/fcm/send -d "{\"registration_ids\":['.$ios_registration_ids.'],\"notification\":{\"title\":\"'.$_POST['title'].'\",\"badge\":\"1\",\"body\":\"'.$_POST['body'].'\"},\"priority\":10}"',$result);