I am sending a remote notification with fcm in my react native project. For Android, the app works flawlessly when it's open or closed. Sounds are coming. For iOS, notifications are coming when the app is open and closed. However, when the application is open, the notification sounds, while the application is in the background, there is no sound. What is the reason?
//backend codenotification:{ title : 'x', body : 'x',},apns: { headers: {'apns-priority': '10',},payload: { aps: { sound: 'default', }},},android: { priority: 'high', notification: { sound: 'default',}}, token : token,};