TryQuiet / quiet

A private, p2p alternative to Slack and Discord built on Tor & IPFS
https://www.tryquiet.org
GNU General Public License v3.0
1.91k stars 81 forks source link

Research: can we *sometimes* start Tor and sync in 30 seconds on iOS? #1007

Open holmesworcester opened 1 year ago

holmesworcester commented 1 year ago

iOS documentation says it will let us wake up the app every 20 minutes and run something for 30 seconds: https://developer.apple.com/documentation/backgroundtasks/choosing_background_strategies_for_your_app

Can we do anything useful with Tor on iOS in 30 seconds, sometimes? Even if it works only 1/3 or 1/4 of the time this is still somewhat helpful because it would get us notifications every 60-90 minutes.

We should look into this.

Questions (try multiple times):

  1. How often can Tor start in 30 seconds?
  2. How often can Tor start and connect to an onion address in 30 seconds (it should be an onion address that we already know is available and/or has been running for some time)?
  3. (If the above work at all) How often can we sync using Orbitdb?
vinkabuki commented 1 year ago

I can't tell what is the probability, but it's definitely possible to bootstrap tor, connect to peer and replicate something in under 30s