Notification-permission check before every action required? #393
-
The Readme-File contains following statement:
Whats the recommended way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The reason to check every time is that the user may have revoked or given the permission while using the app, using the settings menu. If you don't check, or only check on start-up, you won't know. That said, nothing will break if you don't check (because the OS will simply obey the actual permissions set) so if you prefer to do it only occasionally that's totally fine. For example, you could check before a large number of downloads start, or when your "downloads screen" is first created, or as you suggest only on start-up. |
Beta Was this translation helpful? Give feedback.
The reason to check every time is that the user may have revoked or given the permission while using the app, using the settings menu. If you don't check, or only check on start-up, you won't know. That said, nothing will break if you don't check (because the OS will simply obey the actual permissions set) so if you prefer to do it only occasionally that's totally fine. For example, you could check before a large number of downloads start, or when your "downloads screen" is first created, or as you suggest only on start-up.