tladesignz / AdParticipesCumCepis

MIT License
0 stars 0 forks source link

allow user to share HTTP onion url for their onionservice #7

Closed n8fr8 closed 2 years ago

n8fr8 commented 2 years ago
tladesignz commented 2 years ago

Copy/paste:

https://github.com/tladesignz/AdParticipesCumCepis/blob/main/AdParticipesCumCepis/Classes/Share/ShareViewController.swift#L276-L284

QR Code:

https://github.com/tladesignz/AdParticipesCumCepis/blob/main/AdParticipesCumCepis/Classes/Share/ShareViewController.swift#L286-L300

https://github.com/tladesignz/AdParticipesCumCepis/blob/main/AdParticipesCumCepis/Classes/Share/ShowQrViewController.swift

Sharesheet

Nice idea!

However, before I implement that, can we talk about a URL format which includes both the address and the key?

I suggest two options:

  1. Use "password" piece of URL:
http://:somerandomkey@example.onion/
  1. Use a "key" query:
    http://example.onion/?key=somerandomkey
tladesignz commented 2 years ago

Let's discuss there: https://github.com/onionshare/onionshare-shared/issues/2

tladesignz commented 2 years ago

I replaced the clipboard and QR code buttons with a share sheet, which is way more iOS-sy. That supports copy-to-clipboard and QR code display just as well and doesn't take up so much screen estate.

So, all done here, but let's discuss the URL format over at onionshare-share further!