Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing a backup from URL #228

Closed
willwade opened this issue May 18, 2020 · 10 comments
Closed

Importing a backup from URL #228

willwade opened this issue May 18, 2020 · 10 comments

Comments

@willwade
Copy link
Collaborator

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
Copy link
Collaborator

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

@hosseinzoda
Copy link
Collaborator

qrcode reader can help here.

@willwade
Copy link
Collaborator Author

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
Copy link
Collaborator Author

See also #89

@hosseinzoda
Copy link
Collaborator

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
Copy link
Collaborator Author

willwade commented May 19, 2020

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.

@willwade willwade changed the title Universal links / restoring a backup from email Importing a backup from URL May 19, 2020
@hosseinzoda
Copy link
Collaborator

Right.

@willwade
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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
Copy link
Member

Closing in favour of #89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants