How does `NotificationManagerCompat.areNotificationsEnabled()` work? I have tried to do the following `appPushEnabled = String.valueOf(NotificationManagerCompat.areNotificationsEnabled());`
however it is giving me an error? 

Also it says it only works on some devices do I need a try catch on it?