Check if the app has permission to display notifications.
The result is cached from the last request or check; the cache is refreshed asynchronously,
so the very first call in a session may return false before the cached value is populated.
Use requestNotifications() on first launch to ensure the result is accurate.
Check if the app has permission to display notifications. The result is cached from the last request or check; the cache is refreshed asynchronously, so the very first call in a session may return
falsebefore the cached value is populated. UserequestNotifications()on first launch to ensure the result is accurate.