amahi / ios

Amahi iOS App
https://www.amahi.org/ios
GNU General Public License v3.0
41 stars 65 forks source link

handling PDF/MOBI/EPUB files #56

Open cpg opened 6 years ago

cpg commented 6 years ago

files that require opening the file with some other external app, for example, PDF/MOBI/EPUB for digital documents/presentations/books.

i assume some of these mime types could be opened within the app (e.g. PDF with a webview perhaps), but generally, we need to get external apps to get a file that this app (probably) has downloaded and the external app is called.

cpg commented 6 years ago

wait. reopening. we need proper handling of epub/mobi.

i tried this

        types.updateValue(MimeType.document, forKey: "application/epub+zip")
        types.updateValue(MimeType.document, forKey: "application/x-mobipocket")

and the files download and open (of course) in a webview, but clearly the webview cannot handle them. sharing them works well, as ibook and others can open the epub files, others can open the mobil files.

so we need to handle them properly as sharing.