PowerlineApp / powerline-mobile

Other
4 stars 16 forks source link

Toggle Push Notifications On/Off or Digest by Followed Users #590

Open jterps08 opened 7 years ago

jterps08 commented 7 years ago

Option A: In anticipation of user feedback from 'push notification overload', we might want to allow User A to follow user B, but optionally toggle / turn off push notification alerts from that user B. This would allow a User A to see User B's posts in Friend's Feed (along with other benefits of approved following relationship), but would prevent user from being overloaded by push notifications if User B is posting every 5 minutes. The default would be on (which is current behavior), but user would have ability to turn off at the per-user level.

Option B: Instead, we could 'digest' push notification alerts from followed users so that they only arrived once every few hours instead of in real-time. In an ideal world, with several followed users posting every few hours, this would result in only one push notification alert every few hours instead of several push notification alerts.

Option C: Instead, we could give the user the ability to Mute Notifications for All Followed Users Created Posts/Petitions for X Hours (similar to WhatsApp).

Can you let me know which one is easier, @igaponov ? We will need to get user feedback before proceeding.

igaponov commented 7 years ago

@jterps08 the "C" option looks like the easiest one - need only one flag (that will be also a timestamp). Next - option A - need a flag for every followed user. Option B - need to add some queue for every followed user.

jterps08 commented 7 years ago

@igaponov We're going to need to get some user feedback on this.

I assume that C would result in the notification eventually arriving (after X hours)? Or would the push notification never arrive?

igaponov commented 7 years ago

@jterps08 if we want to avoid "push notification overload" the notification should never arrive.

p.s. never used this feature in WhatsApp and don't know how it works there

jterps08 commented 7 years ago

I think we're going to go with Option A on this, but I want user feedback to confirm. We're going to need a design that allows User A to follow User B (exists), default push notifications on (exists), with option to turn off push notifications for new (non-boosted) user posts and user petitions from that user B. Boosted posts and petitions should continue to operate normally.

igaponov commented 7 years ago

https://api-dev.powerli.ne/api-doc#post--api-profile-settings attribute followed_do_not_disturb_till https://api-dev.powerli.ne/api-doc#put--api-v2-user-followers-{id} attribute notifying true|false

jterps08 commented 7 years ago

Nicely done @igaponov ... Can we make attribute notifying true by default and not make it required? Or is it definitely required.

igaponov commented 7 years ago

@jterps08 it's true by default. Frontend sends all attributes on update, doesn't matter whether it's required or not.