actually there are not little amount of Iphone users that do not receive my FCM push notification..
here is a snipped createMessage function.
function createMessage(fcmToken:string,request:any){
const message:fireBase.messaging.Message = {
token:fcmToken
,apns:{
fcmOptions:{analyticsLabel:request.body.destination}
,payload:{
aps:{
alert:{
title:request.body.titleStr
,body:request.body.bodyStr
}
,sound:"default"
}
}
}
,android:{
notification:{
title:request.body.titleStr
,body:request.body.bodyStr
,defaultSound:true
,priority:"max"
,visibility:"public"
,channelId:"myChannelID"
,defaultVibrateTimings:true
}
,data:{
title:request.body.titleStr
,body:request.body.bodyStr
}
,priority:"high"
,fcmOptions:{analyticsLabel:request.body.destination}
}
}
return message;
}