damus icon indicating copy to clipboard operation
damus copied to clipboard

Low data / cellular mode [325,000 sats]

Open alltheseas opened this issue 2 years ago • 23 comments

User Story

As a Damus pleb who uses app on the go (cellular), I want to have a setting where I can turn down Damus data needs (data saver mode), so that I don't surpass my celullar carrier's data throttling threshold, AND so that my events post thereby avoiding poor Damus experience(s).

Acceptance Criteria

  1. ~In settings~ Damus user can set cellular mode on
  2. By setting cellular mode, Damus automagically detects when Damus is not on wi-fi, and reduces data demands
  3. This setting is turned on automatically, if it detects low data mode on iOS (see iOS reference https://support.apple.com/en-us/HT210596)
  4. User can clearly see that Damus is performing in low data mode
  5. in low data mode: -damus does not auto-load new images (related to settings -> appearance -> media previews setting) -damus does not auto-load new videos (related to settings -> appearance -> media previews setting) -damus does not auto-load new link previews (does this use significant data?) -damues does not load new profile banners -damus does not load new pfps

questions

-does the refresh mechanism change in low data mode -design: @robagreda what does "low data mode" status look like? how might we display low data mode to the user when it is on? should low data mode icon be displayed all the time? -design: @robagreda how might we allow user to change low data mode setting (when not on wi-fi) without having to send user deep in the settings menus? -design: does user have a mechanism to manually load an image as a one off, video while in low data mode?

alltheseas avatar Apr 14 '23 19:04 alltheseas

https://github.com/damus-io/damus/issues/645 https://github.com/damus-io/damus/pull/965 would reduce bandwidth requirements

alltheseas avatar Apr 20 '23 20:04 alltheseas

https://stackoverflow.com/questions/2593971/iphone-simulator-simulate-a-slow-connection

https://download.developer.apple.com/Developer_Tools/Additional_Tools_for_Xcode_14.3_Release_Candidate/Additional_Tools_for_Xcode_14.3_Release_Candidate.dmg

alltheseas avatar Apr 26 '23 18:04 alltheseas

image

image

https://damus.io/note1gcet9qd9mrltp3d7k7ctwrrgh0anqglx82wmgycdcdpyhylp7avs8ujs34

alltheseas avatar Jun 25 '23 14:06 alltheseas

Negentropy by @jb55 should reduce data consumption

alltheseas avatar Aug 22 '23 03:08 alltheseas

Related: disable image loading

https://github.com/damus-io/damus/issues/667

alltheseas avatar Aug 31 '23 22:08 alltheseas

Bounty posted by Tetsu, Dan Wege: 100k sats

https://damus.io/note1uygs4fzg6dtrff326stk9thfec5meqx63f6v03qpv6axtsara7js2vwx24

alltheseas avatar Sep 25 '23 19:09 alltheseas

@robagreda your design magic is requested, sir 👀

alltheseas avatar Sep 25 '23 20:09 alltheseas

Bounty posted by Tetsu, Dan Wege: 100k sats

https://damus.io/note1uygs4fzg6dtrff326stk9thfec5meqx63f6v03qpv6axtsara7js2vwx24

225k sats

https://damus.io/note1aqg5qll3vu689j4568d22qgycysweanhhm7qcj9w9aaw9wrnyu8qwyg879

alltheseas avatar Oct 08 '23 14:10 alltheseas

image

alltheseas avatar Oct 17 '23 02:10 alltheseas

Maybe cuts your relays down, doesn't load follow numbers, doesn't load too many notes. You know just when you're out and about not in WiFi.

alltheseas avatar Nov 16 '23 15:11 alltheseas

Consider Mutiny Booster relay / Bostr relay for potential data savings https://damus.io/note1myc2dk8ctzusv7hcgpjfyhp08k2uqt5sqg26f49f55qxzqfqqdlqv55l2w

alltheseas avatar Nov 18 '23 20:11 alltheseas

Put me down for 100k sats. Does this need design or Rob got it?

karnagebitcoin avatar Dec 19 '23 04:12 karnagebitcoin

Put me down for 100k sats. Does this need design or Rob got it?

Thanks! I'll share updated bounty to nostr shortly.

I couldn't find low data mode in https://www.figma.com/file/ORaT1T0Ywfbm0sIjwy5Rgq/Damus-iOS?type=design&node-id=0-1&mode=design&t=dj8r4gylEAEIZUzv-0

@robagreda lmk if I missed it.

I think Rob is out of pocket currently if you want to have a go @karnagebitcoin

We would apply the low data mode design to Damus Android, as Android users have less bandwidth.

alltheseas avatar Dec 19 '23 15:12 alltheseas

Was planning to tackle all this in new year since I am still traveling so I have less availability for these tasks, didn't know it was a priority tho. You can check it out @karnagebitcoin :)

robagreda avatar Dec 19 '23 17:12 robagreda

Was planning to tackle all this in new year since I am still traveling so I have less availability for these tasks, didn't know it was a priority tho. You can check it out @karnagebitcoin :)

We have quite a few things on iOS docket to implement. That said Android should be designed low data by default, and this I think will help inform the direction for devs before they get too far in implementation.

Thank you, and safe and fun travels and Merry Christmas @robagreda

alltheseas avatar Dec 19 '23 17:12 alltheseas

We should have a way to measure how much data usage is coming from where. I think there may be lots of confusion as to what is using all the data. We can't fix what we can't measure.

jb55 avatar Dec 23 '23 19:12 jb55

We should have a way to measure how much data usage is coming from where. I think there may be lots of confusion as to what is using all the data. We can't fix what we can't measure.

https://github.com/damus-io/damus/issues/1838

alltheseas avatar Dec 26 '23 00:12 alltheseas

Media uploads could be queued until Wi-Fi connection is detected.

alltheseas avatar Jan 10 '24 19:01 alltheseas

image

Would be useful to understand media filter use impact on data

alltheseas avatar Jan 30 '24 03:01 alltheseas

Tooltip from amazon video that provides data usage estimate, depending on settings.

Screenshot 2024-02-10 at 11 02 36 PM

alltheseas avatar Feb 11 '24 05:02 alltheseas

Damus is hardly usable for me on a 3G simulator: 30 seconds to load some notes, notifications not loading one minute in

alltheseas avatar Feb 20 '24 10:02 alltheseas

On Tue, Feb 20, 2024 at 02:57:30AM -0800, alltheseas wrote:

Damus is hardly usable for me on a 3G simulator: 30 seconds to load some notes, notifications not loading one minute in

I'm going to start using damus this way. This is a good idea.

jb55 avatar Feb 20 '24 16:02 jb55

Motivation:

https://github.com/damus-io/notedeck/issues/195

alltheseas avatar Apr 10 '24 02:04 alltheseas