readium/readium-sdk

Unable to render EPUBs on iOS14 Beta

rkwright opened this issue · 1 comments

Reported by @sushil

This issue is a Bug

Related issue(s) and/or pull request(s)

Not at this time

Expected Behaviour

Should render the EPUB without problems.

Observed behaviour

App works well on simulator - everything works but on device we just get a blank page (with loader at the footer) and app froze there. Nothing happens after that. R1 has webview (i.e. normal webview) and but in our branch we have implemented WKWebview since webview was going to be deprecated. We are able to replicate the issue with IOS 14 beta. on SDK launcher and in our custom app which uses WKWebview.

Steps to reproduce

  1. Launch the iOS app which includes the iOS 14 Beta
  2. Open an EPUB in the XCode simulator -> works fine
  3. Open an EPUB with the running on the iOS device.
  4. Nothing gets rendered and the app hangs.

Test file(s)

Any will do.

Product

  • Native application (Readium SDK C++)
    • proprietary app
    • iOS 14 on iOS device*

Additional information

None at this time

@olivierkorner Also noticed some odd behaviour from iOS 14:

I’ve noticed some issues with Readium 1 on iOS 14 as well, most likely due to WKWebview having some delay to load content. Let’s hope Apple will fix it.

and:

Well I suppose Apple is going to fix the issue eventually. In the meantime, I was able to fix this by making sure ReadiumSDK was loaded and initialized before calling it. What does the web console of your WKWebview tell you?