Time to ask for help; spent too many days of attempting to solve this issue on my own. Any assistance is greatly appreciated.
I’m running react-reader
in a web app and it loads epub files across browsers (including Safari) without any issues. But when the app runs on iOS via Cordova, it no longer loads the epub files. I’m assuming it might have to do with the way iOS/Cordova handles files, but I’m not an expert in these matters. I did try out different StackOverflow suggestions (this, this, this, and this), to no avail.
All epub files are located in a subfolder: www/epubs/
Here’s the react
code that works on the web app, but not the Cordova app (simplified to the essentials):
import React from 'react'
import { EpubView } from 'react-reader'
export default ({ lang, name }) => (
<EpubView
url={'epubs/' + lang + '-' + name + '.epub'}
/>
)