Hi
please i have an question - are there is way to set push notification sound form code like c# or js ?
or that can done only from ios code or android code ?
thanks a lot for your concern 
                    
                
            can i set push notification sound ?
                Friday, October 31, 2025 4:39:56 AM
            
        
                    thanks a lot
i get firebase page https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support
and i know that it's not from my side it can handled by IOS or android
and i saw the code
            i get firebase page https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support
and i know that it's not from my side it can handled by IOS or android
and i saw the code
            WebRequest tRequest = WebRequest.Create("https://fcm.googleapis.com/fcm/send");
            tRequest.Method = "post";
            tRequest.ContentType = "application/json";
            var ids = new List<string>();
            if (registrationIds != null && registrationIds.Any())
            {
                ids = registrationIds;
            }
            else
            {
                var receivers = GetPushReceivers();
                if (!receivers.Any())
                {
                    return new Tuple<bool, string>(false, _localizationService.GetResource("PushNotifications.Error.NoReceivers"));
                }
                foreach (var receiver in receivers)
                {
                    if (!ids.Contains(receiver.Token))
                        ids.Add(receiver.Token);
                }
            }
            var data = new
            {
                registration_ids = ids,
                notification = new
                {
                    body = text,
                    title = title,
                    icon = pictureUrl,
                    click_action = clickUrl
                }
            };
                    
                 0 
                
                    
                
            
                    Note: finally i did it :)
after some search i found that just add sound to c# code in file "PushNotificationsService.cs" and it works :)
Thanks a lot
            after some search i found that just add sound to c# code in file "PushNotificationsService.cs" and it works :)
var data = new
{
registration_ids = ids,
notification = new
{
body = text,
title = title,
icon = pictureUrl,
click_action = clickUrl,
sound: "default" // Enable Sound
}
};
Thanks a lot
 0 
                
                    
                
             
             
                                