Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Big Notifications not working

$
0
0

I am trying to use the expanded notifications but they seem to be not working,

Here is my code

        var notificationBuilder = new NotificationCompat.Builder(this)
            .SetSmallIcon(Resource.Drawable.icon)
            .SetContentTitle(title)
            .SetContentText(text)
            .SetAutoCancel(true)
            .SetSound(RingtoneManager.GetDefaultUri(RingtoneType.Notification))
            .SetStyle(new NotificationCompat.BigTextStyle().BigText(text))
            .SetContentIntent(pendingIntent);

        var notificationManager = (NotificationManager)GetSystemService(NotificationService);
        notificationManager.Notify(id++, notificationBuilder.Build());

Am I missing something ?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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