简体   繁体   English

当应用在后台时,Firebase推送通知不会播放声音

[英]Firebase Push notification is not playing sound when app is in background

I've implemented Android Push Notifications using Firebase Cloud Messaging FCM from AndroidHive but the notification has not sound when application is in background. 我已经使用AndroidHive中的 Firebase云消息传递FCM实现了Android推送通知,但是当应用程序处于后台时通知没有响起。

Can anyone help me to set sound on firebase background notification? 任何人都可以帮我在firebase后台通知上设置声音吗?

make sure Sound is active like this 确保声音像这样活跃

在此输入图像描述

if deosn't work please check the official documentation Firebase Documentation 如果无法正常工作,请查看官方文档Firebase文档

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 推送通知声音未播放应用程序在后台 - Push notification sound is not playing app is in background Android 仅当应用程序处于前台时才播放推送通知声音,但当应用程序处于后台时不播放声音 - Android Push notification sound is played only when app is in foreground but not playing sound when app is in background 为什么当应用程序处于后台时声音不响(Android应用程序中的Firebase推送通知)? - Why Sound is not ringing when app is in background(Firebase Push Notification in Android app)? 当应用程序在后台时更新Firebase推送通知 - Updating Firebase push notification when app is in background 使用cURL https://fcm.googleapis.com/fcm/send时,Firebase推送通知无法播放声音 - Firebase Push notification is not playing sound when using cURL https://fcm.googleapis.com/fcm/send 当应用未激活时,Android通知声音无法播放 - Android notification sound not playing when app is not active FCM推送通知未显示应用程序何时打开,获得消息,但只是播放声音 - FCM push notification not showing when the app is opened, got message, but just playing sound Firebase 在 android 中从后台删除应用程序时未收到推送通知 - Firebase push notification not received when app remove from background in android 应用程序在后台时,Android Firebase推送通知 - Android-Firebase Push Notification when app is in background Android:当应用未运行或在后台运行时,将Firebase推送通知保存到磁盘 - Android: saving a Firebase push notification to disk when the app is not running or in background
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM