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

Android - push notification with NotificationCompat.Builder

$
0
0

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

Code: https://repl.it/repls/BoldHumongousWorkers


Viewing all articles
Browse latest Browse all 28468

Trending Articles



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