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

React Native Firebase Cloud Messaging push notification do not produce sound in iOS

$
0
0

I am using react native firebase cloud messaging push notifications. And followed completed documentation as given https://rnfirebase.io/messaging/usage

Everything works fine but sound does not produce on iOS device when push notification arrives. Sound works perfectly on Android but not on iOS. Permissions are also added.

Versions I am using:

"react-native": "0.63.2","@react-native-firebase/app": "^8.3.1","@react-native-firebase/messaging": "^7.7.1",

Permission code:

  const authStatus = await messaging().requestPermission({    sound: true,    alert: true,  });  const enabled =    authStatus === messaging.AuthorizationStatus.AUTHORIZED || authStatus === messaging.AuthorizationStatus.PROVISIONAL;    return enabled}

I have google and everything implemented as suggested but still notification do not produced sound.

Any help would be appreciated.


Viewing all articles
Browse latest Browse all 16552

Trending Articles



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