digitalfabrik / integreat-app

React JS and React Native App for Integreat
https://integreat.app
MIT License
46 stars 15 forks source link

IGAPP-854: Explain opening of settings for push notification permission to user #2350

Open jira-to-github-migrator[bot] opened 1 year ago

jira-to-github-migrator[bot] commented 1 year ago

Is your feature request related to a problem? Please describe. As a user I would like to know why the system settings are opened if I try to enable push notifications but permissions are blocked.

Describe the solution you'd like Show an alert as shown in the design. The alert should explain the necessary steps on android or ios and have buttons to cancel or proceed to settings.

The systems dialog should be used, DO NOT implement an own component for this. All used strings should be translated.

Describe alternatives you've considered None.

Additional context Take a look at the way we show a alert in the JpalTracking, perhaps you can copy some stuff: https://github.com/digitalfabrik/integreat-app/blob/94e21eebe136b7c60ff2e53f220ce93a0fc01312/native/src/routes/JpalTracking.tsx#L74

Old description:

If the user declines the permission to receive push notifications, it is not possible to request permission again. Instead, the user has to change it manually in the settings. If a user wants to enable push notifications, we therefore just open the app settings without telling the user why or what to do there (see video). Maybe it makes sense to show a message to the user first.

Currently we only have a snackbar component to do so which may not be the best choice.

(more but not needed information for this ticket: ttps://chat.tuerantuer.org/digitalfabrik/pl/98dnizpqnfbxpd9ribui6wmdoh)

Environment: - Linked issues:

sarahsporck commented 1 year ago

https://github.com/digitalfabrik/integreat-app/assets/28013368/9122b2b7-45cf-4086-b6f7-a977d578444a

hauf-toni commented 1 year ago

📍 design proposal can be found here