I am modifying a react native plugin, since it seems that its author does not support and I need to correct an error.
The plugin is https://github.com/zo0r/react-native-push-notification and the custom audio does not work on android. I have modified the code and the code line where I put notification.setChannelId (NOTIFICATION_CHANNEL_ID_TMP);
makes the custom audio works, but then the notification doesn't show inside app, it appears in the notification menu but not within the app.
If I comment on this line of code, the notification shows inside the app, but the default audio of the mobile phone rings.
I upload the code of the modified file in case someone wants to consult it. The modified line is 321