diff --git a/src/Plugin.LocalNotifications.Android/LocalNotificationsImplementation.cs b/src/Plugin.LocalNotifications.Android/LocalNotificationsImplementation.cs index 4477ddc..0f1f926 100644 --- a/src/Plugin.LocalNotifications.Android/LocalNotificationsImplementation.cs +++ b/src/Plugin.LocalNotifications.Android/LocalNotificationsImplementation.cs @@ -30,11 +30,12 @@ public class LocalNotificationsImplementation : ILocalNotifications /// Id of the notification public void Show(string title, string body, int id = 0) { - var builder = new Notification.Builder(Application.Context); - builder.SetContentTitle(title); - builder.SetContentText(body); - builder.SetAutoCancel(true); - + var builder = new NotificationCompat.Builder(Application.Context) + .SetContentTitle(title) + .SetContentText(body) + .SetSound(RingtoneManager.GetDefaultUri(RingtoneType.Alarm)) + .SetStyle(new NotificationCompat.BigTextStyle().BigText(body)); + if (NotificationIconId != 0) { builder.SetSmallIcon(NotificationIconId); @@ -154,4 +155,4 @@ private long NotifyTimeInMilliseconds(DateTime notifyTime) return utcAlarmTimeInMillis; } } -} \ No newline at end of file +}