Custom Sound Not working in background state or kill state
Current package "react-native-push-notification": "^7.3.1"
Custom sound working in the foreground state. but not working in the background state in android, but notifications are coming with default sound. can any check this?
React_native Version : "react-native": "0.63.2",
we have used this method for background notification
import messaging from '@react-native-firebase/messaging';
messaging().setBackgroundMessageHandler(async message => { console.log('FCM messege in background receieved',message); });
we also set all custom properties for push:
var PushNotification = require("react-native-push-notification"); PushNotification.localNotification({ channelId: "App Channel Name", autoCancel: true, // (optional) default: true vibrate: false, // (optional) default: true vibration: 0, // vibration length in milliseconds, ignored if vibrate=false, default: 1000 priority: "high", // (optional) set npotification priority, default: high messageId: nexmoObject.messageId, invokeApp: true, title: "Message From App Name", // (optional) message: nexmoObject.body.text, data: nexmoObject, playSound: true, soundName: 'my_sound', visibility: "public" });