Use multiple notification sounds

taitotaito USMember ✭✭

Isn't it anymore possible to use multiple notification sounds if firebase remote notification where used? Or do I have to create a NotificationChannel for each notification sound?

Best Answer

  • yelinzhyelinzh Xamurai
    Accepted Answer

    You have to create a NotificationChannel for each nofitication sound.

    Notification sound can't be changed beacuse it's determined when creating the NotificationChannel. The properties you can update are the channel name and description.

Answers

  • AnandmauryaAnandmaurya INMember ✭✭
    edited April 15

    @taito According to your business logic you can change notification sound.

    Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.notificationsound);
    and then call to setSound(uri) in notificationbuilder.

  • yelinzhyelinzh Member, Xamarin Team Xamurai
    Accepted Answer

    You have to create a NotificationChannel for each nofitication sound.

    Notification sound can't be changed beacuse it's determined when creating the NotificationChannel. The properties you can update are the channel name and description.

Sign In or Register to comment.