android NotificationManagerCompat.areNotificationsEnabled not working
<p>How does <code>NotificationManagerCompat.areNotificationsEnabled()</code> work?  I have tried to do the following <code>appPushEnabled = String.valueOf(NotificationManagerCompat.areNotificationsEnabled());
</code>
however it is giving me an error?  </p>

<p>Also it says it only works on some devices do I need a try catch on it?</p>