Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

FCM | Notification IOS

$
0
0

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,};

Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>