nextcloud / neon

A framework for building convergent cross-platform Nextcloud clients using Flutter.
Other
128 stars 31 forks source link

Allow apps to handle push notification interaction themselves #2587

Open provokateurin opened 2 weeks ago

provokateurin commented 2 weeks ago

Currently we just open the corresponding app when the user click on the notification and we simply refresh the notifications bloc when a new one was received, but this is usually not enough: https://github.com/nextcloud/neon/blob/d39d597671e7b42e8a73bf7cdb5edc9889f8b56b/packages/neon_framework/lib/src/app.dart#L111-L149 For example in Talk we actually want to open the room the push notification came from when it is clicked instead of just showing the room list.

The AppImplementation should be able to optionally implement two methods for handling these scenarios manually.

provokateurin commented 1 week ago

Also for example clicking on Talk notification is currently "broken" because the IDs don't match and the Notifications App is opened as a fallback.