Pretty much all the bits of sample code I see for Android notififactions appear to use NotificationCompat. I have written up my own code using Notification.Builder. It is not clear to me what benefits, if any, there might be in using NotificationCompat.Builder. I hope that someone here might be able to explain the differences.
depends on what you are trying to do and what OS version's your app is compatible with but in most cases you would want to use NotificationCompat
because that provides backwards compatibility where as if you wanted to provide that with the regular Notification.Builder
you would have to check what OS version the device has yourself to use API calls that are not in older versions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With