GoodDAPP
GoodDAPP copied to clipboard
add notifications to the app permissions
- [x] configure native apps (plist and manifest) to be allowed to ask local notifications perms
- [x] add Notifications permissions to the
src/components/permissions/api/PermissionsAPI.web.js
class - [x] on the web always return 'denied' for notifications (status check), do nothing on request
- [x] update
usePermissions()
hook
ONHOLD:
- [ ] add notifications to the platform permissions
- [ ] add fallback
_requestNotificationsPermissions
method to be called if browser doesn't supports Permissions API. how to do it see here: https://github.com/GoodDollar/desktop-notifications-sw-test/blob/master/src/useNotifications.js