swift-toolkit icon indicating copy to clipboard operation
swift-toolkit copied to clipboard

No user feedback when an EPUB publication is opened with the navigator without adding it to the publication server first

Open Recouse opened this issue 5 years ago • 4 comments
trafficstars

I tried to port EPUBViewController from this example app. Everything seems to work, but EPUB's content not loading in my app. There is only an activity indicator from r2-navigator's EPUBSpreadView. No errors in the console. I don’t have an idea what could be the problem.

Recouse avatar May 17 '20 12:05 Recouse

Sorry, I missed the part with adding a Publication to the server.

Recouse avatar May 17 '20 13:05 Recouse

I'm reopening this issue, it would be useful to have better feedback when something like that is not setup properly

mickael-menu avatar May 17 '20 17:05 mickael-menu

I used EPUB reader implementation from this example app. While copying code, I missed this part https://github.com/readium/r2-testapp-swift/blob/develop/r2-testapp-swift/Library/LibraryViewController.swift#L352, which was needed for accessing publication resources via a local server.

I read this in r2-streamer readme https://github.com/readium/r2-streamer-swift#adding-publications-to-the-server. I was sure that I did it until I created this issue and checked my code for calling this method.

Recouse avatar May 17 '20 18:05 Recouse

Thanks for the details 👍

mickael-menu avatar May 18 '20 06:05 mickael-menu