Open cpg opened 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.
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.