AceCentre / pasco

Phrase Auditory Scanning COmmunicator - AAC App for iOS and the Web
https://app.pasco.chat
GNU General Public License v3.0
14 stars 6 forks source link

Importing a backup from URL #228

Closed willwade closed 2 years ago

willwade commented 4 years ago

Having some problems helping clients open and restore zip backups that we’ve created. Not sure best approach - maybe using something like universal links plugin?

hosseinzoda commented 4 years ago

Good idea, no need for that plugin. We can simply download the file and put it in the import task.

hosseinzoda commented 4 years ago

qrcode reader can help here.

willwade commented 4 years ago

So how would that work? We pop a file somewhere online & generate a qr code for it. Then they scan the QR code - it takes them to a browser - and the browser opens pasco app and imports?

willwade commented 4 years ago

See also #89

hosseinzoda commented 4 years ago

Well, I was thinking for when the app is open already and they click on import with url. Then a dialog comes up with url text box and a qrcode reader button. There's also the ability to create a protocol lets say, pascorestore://... Which will open the pasco app and import directly by translating the url to https.

willwade commented 4 years ago

Got you. So two techniques to implement:

  1. Register a unique URL protocol in-app. Add an event handler to then download stream and put in import task.
  2. Add "Import URL" alongside file browser to "Import" which then shows QR/URL field.
hosseinzoda commented 4 years ago

Right.

willwade commented 4 years ago

Interestingly this seems that the URL protocol is a little outdated - https://stackoverflow.com/a/11421402/1123094 - but whatever - I think we know what roughly we want it to do to work.

willwade commented 3 years ago

Hmm..

I'm starting to wonder if this is better just dealt by making sure we have https://github.com/cowbell/sharedrop https://www.sharedrop.io/ - installed or bookmarked on the device.. Would be nice to integrate an import/export of sharedrop into pasco of course (or our own fork of it)..

gavinhenderson commented 2 years ago

Closing in favour of #89