nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.95k stars 4.02k forks source link

Sync (Push) notifications #13980

Open tobiasKaminsky opened 5 years ago

tobiasKaminsky commented 5 years ago

Done

When receiving a notification:

On Android/iOS:

On Desktop:

Missing: iOS @nextcloud/ios:

Android @nextcloud/android:

On server @nickvergessen:

Desktop @nextcloud/desktop:

tobiasKaminsky commented 5 years ago
  • once a notification is dismissed this should be sent as "deleted" event with id to all devices so they can remove the pending push notification

@nickvergessen can I send custom push notifications to me, so that I can test this?

nickvergessen commented 5 years ago

https://github.com/nextcloud/notifications/blob/master/docs/admin-notifications.md

tobiasKaminsky commented 5 years ago

This works really nice:

@nickvergessen this is of course only a test and should then be done in a safer way, maybe we can use "app" for this? "delete_notification" as app. Also this notification then should not be shown/stored at all on server.

(https://github.com/nextcloud/notifications/blob/master/docs/push-v2.md)

rullzer commented 5 years ago
* on receiving a push notification, I first check for delete subject, if not regular notification is shown else I delete the shown notification (if available)

Only delete it if the id matches of course ;)

marinofaggiana commented 5 years ago

Hi, next week I will implement this ... now I am too busy for remake of tab "Media" ...

tobiasKaminsky commented 5 years ago

For receiving "hidden" push messages to delete the notifications on screen, we would need implementation by @nickvergessen.

nickvergessen commented 5 years ago

First marino needs to move iOS to PushKit, otherwise he can not hide/delete notifications, which would mean the delete notifications would also show up

tobiasKaminsky commented 5 years ago

Ah, ok did not know about iOS internals, but on Android we receive a push and then can decide if we want to show a notification.

But then this is step 2 :-)

marinofaggiana commented 5 years ago

Soon !! (next week) @Ivansss ;)

tobiasKaminsky commented 5 years ago

ping @rullzer to have a look into push server side

nickvergessen commented 5 years ago

Why?

tobiasKaminsky commented 5 years ago

@nickvergessen cause you are busy in talk and we wanted to keep work off you.

tobiasKaminsky commented 5 years ago

First marino needs to move iOS to PushKit, otherwise he can not hide/delete notifications, which would mean the delete notifications would also show up

@marinofaggiana have you already switched to PushKit?

nickvergessen commented 5 years ago

Yes, it was done yesterday+today.

However beta2 just went out, i guess we have to wait one more release?

tobiasKaminsky commented 5 years ago

Great to hear :-) Then we can start implementing it. I guess, @nickvergessen the server/app has to start, or? :tada:

tobiasKaminsky commented 5 years ago

Re-opening as this is missing on desktop (sync without push) and iOS.

MorrisJobke commented 5 years ago

Re-opening as this is missing on desktop (sync without push) and iOS.

cc @camilasan @marinofaggiana

szaimen commented 3 years ago

Is this still not yet implemented on Desktop and iOS? If it is, please close this issue. Thanks!

rakekniven commented 3 years ago

iOS is done.

szaimen commented 3 years ago

cc @nextcloud/desktop