Closed BPerlakiH closed 4 weeks ago
@BPerlakiH What about opening the file directly with a third party app? Here, and for this kind of UX tickets, would be great to have a small screencast in the PR description so we can figure out how it works.
@kelson42 posted the video recordings to you on slack.
Videos looks good. @rgaudin any remarks? I would propose to merge and test with testflight if it really work like expected?
Videos looks good. @rgaudin any remarks? I would propose to merge and test with testflight if it really work like expected?
I agree
Fixes #193
Before
We had the following flow for a kiwix url (eg: kiwix://42EF661C-B328-5AFF-4A1D-41F348378AFE/I/files/9791029307393.epub)
Changes
Exporting the content
macOS:
Here it is slightly easier, once we have the content to export, we can display the "save" panel from the OS, and once the user selects where it should be saved, we can write the content there. In terms of I/O, we write the file only once directly to the place picked by the user (eg: Desktop folder)
iOS:
It is slightly more complicated, as in order to display / share the content we need to create a temporary file out of it. In order not to create accidental files just by taping on links, there's an additional alert asking the user if he/she wants to export the content. Once agreed, we create the temp file, show the system dialog, where the user can save the file, and once that is closed (either with or without success), we delete the temp file.