Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen Time Content Restrictions Disabling Reader WebView #325

Open
brianzinken opened this issue Jul 25, 2023 · 2 comments
Open

Screen Time Content Restrictions Disabling Reader WebView #325

brianzinken opened this issue Jul 25, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@brianzinken
Copy link

Bug Report

What happened?

Using the Test app, the reader is prevented from loading ePub content when Screen Time content restrictions are enabled.

Expected behavior

Users of the app should be able to tap "Allow Website" or enter "localhost" into the approved website list to allow the reader to load content

How to reproduce?

Affected users are going to Settings > Screen Time > Content & Privacy Restrictions > Content Restrictions, then turning on the Web Content filter to allow only specified websites.
Until 16.5.1 was released, adding "localhost" to the list of approved websites would allow the reader to load all ePub content. But after the update, it no longer works.

Environment

  • Readium version:
    2.5.1

Development environment

macOS: 13.4.1
platform: x86_64
carthage: 0.39.0
Xcode 14.3.1
Build version 14E300c

Testing device

  • iOS version: 16.5.1c
  • Model (e.g. iPhone 11 Pro Max): iPhone 11
  • Is it an emulator? No

Additional context

  • Are you willing to fix the problem and contribute a pull request? Yes
@mickael-menu mickael-menu added the bug Something isn't working label Jul 26, 2023
@mickael-menu
Copy link
Member

Thanks @brianzinken, did you have a chance to test the following ideas?

  • Using 127.0.0.1 instead of localhost and see if that helps.
  • Use a fixed port instead of a random one.
  • Adding manually localhost:port in iOS's settings, when you use a fixed port

@brianzinken
Copy link
Author

@mickael-menu
Using 127.0.0.1 instead of localhost - did not resolve the issue.
I used the debugger to catch the random port for the web view, and applied that to the iOS settings. That did not resolve the issue either.
I can try overriding the random port and assigning a fixed one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants