title: Android checkSelfPermission for push Notifications
body: <p>My issue is that I am not sure what String key to use to check for Notification permissions. For key </p>
  
  <pre><code>"com.google.android.c2dm.permission.RECEIVE"
  </code></pre>
  
  <p>this code always returns true, even if I remove the permission from my Manifest:</p>
  
  <pre><code>                int permissionCheck = ContextCompat.checkSelfPermission(getApplicationContext(), "com.google.android.c2dm.permission.RECEIVE");
              if (permissionCheck==PackageManager.PERMISSION_GRANTED) {
                  Log.d("granted","TRUE");
              }
  </code></pre>
  
  <p>I also tried other permission strings like 'mypkg.permission.C2D_MESSAGE'.</p>
  
  <p>If this is because the Notification permission in the system is considered "normal" and not "dangerous", then how do I detect if the user has disabled Notifications for my app in phone settings (like attached image)?</p>
  
  <p><a href="https://i.stack.imgur.com/4ljZb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4ljZb.png" alt="enter image description here"></a></p>