Server: Sync (Push) notifications

Created on 1 Feb 2019  路  17Comments  路  Source: nextcloud/server

Done

  • [x] Android
  • [ ] iOS
  • [ ] Desktop
  • [x] Server

When receiving a notification:

On Android/iOS:

  • you get a push notification (displayed as popup/ in statusbar)
  • you can click on it, get redirected to list of notifications
  • on iOS you can delete notifications via swipe (get also deleted on server)

On Desktop:

  • polling of notifications

Missing:
iOS @nextcloud/ios:

  • [x] "delete" action on push notification is missing
  • [x] handle incoming "delete" push notification

Android @nextcloud/android:

On server @nickvergessen:

  • [x] 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

Desktop @nextcloud/desktop:

馃捇 desktop 馃馃崗 mobile enhancement activity and notification overview

Most helpful comment

* 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 ;)

All 17 comments

  • 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?

This works really nice:

  • send a notification with "delete:$id" as subject
  • 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)

@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)

* 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 ;)

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

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

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

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 :-)

Soon !! (next week) @Ivansss ;)

ping @rullzer to have a look into push server side

Why?

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

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?

Yes, it was done yesterday+today.

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

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

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

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

cc @camilasan @marinofaggiana

Was this page helpful?
0 / 5 - 0 ratings

Related issues

williambargent picture williambargent  路  3Comments

rullzer picture rullzer  路  3Comments

arno01 picture arno01  路  3Comments

mfechner picture mfechner  路  3Comments

MorrisJobke picture MorrisJobke  路  3Comments