oreporan / wePlayMin

WePlay - the social football managing app
0 stars 1 forks source link

notification system #16

Closed oreporan closed 8 years ago

oreporan commented 8 years ago

Every user will eventually need a notification tab. When a user wants to join a league, the admin will get a notification of a "joining request" from a user. The user will get a notification "approved" when the admin approves.

The best way to do this is to add a notifications array (with read/unread and timestamp) in the user's schema. something like : notifications: [{read: false, created: <date> , text: <String>}] But we need to a build a smart system that sends and receives and marks notifications.

You want to take this @Yahavw ?

Yahavw commented 8 years ago

I can take it, lets talk on Saturday and see what we need and want to do in the server, and how we can move on to the client. Maybe we can focus on the hybrid and just make a skeleton native for learning purpose.

2015-10-03 18:35 GMT+03:00 oreporan notifications@github.com:

Every user will eventually need a notification tab. When a user wants to join a league, the admin will get a notification of a "joining request" from a user. The user will get a notification "approved" when the admin approves.

The best way to do this is to add a notifications array (with read/unread and timestamp) in the user's schema. something like : notifications: [{read: false, created: , text: }] But we need to a build a smart system that sends and receives and marks notifications.

You want to take this @Yahavw https://github.com/Yahavw ?

— Reply to this email directly or view it on GitHub https://github.com/oreporan/wePlayMin/issues/16.

oreporan commented 8 years ago

Started working on this - right now each user has an array of notification IDs which he needs to query (bulk query) to get the notification object. There is currently a notification sent out to the admins when a user has joined the league, and a notification is sent out to a user who has become an admin

oreporan commented 8 years ago

Notification system has a few notifications now - (addAdmin, addGame, joinLeague, leaveLeague..) These eventually need to become actual ios/android notifications