internetarchive / internetarchive/openlibrary

PWA Android app stops loading new pages

Open
#9,356 14 comments 0 reactions 0 assignees View on GitHub
Affects: Mobile/Responsive Lead: @cdrini Module: Borrowing / Lending Priority: 3 Type: Bug
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

### Problem

Whenever I am reading a OL book in the (official, Internet Archive) Open Library Android app, it will not reliably load subsequent pages. I will be stuck at an empty page and the next pages will not load no matter how long I wait. As a workaround I've found that if I switch to the multi-page view (the "4 pages" icon at the bottom) the missing pages will load. I believe this mostly happens when the internet connection is less than ideal. In bad conditions I will get stuck after maybe five pages, in better conditions only a few time per book. But it does happen with every book (and only in the app). It feels as if in the single-page view the app tries exactly once to load the next page and then, after a too-short timeout, doesn't try again.

#### Evidence / Screenshot

#### Relevant URL(s)

### Reproducing the bug

1. Try to read book in Android app, single-page view

* Expected behavior: When I scroll to next page, that page should load (or preferrably, already have been pre-loaded).
* Actual behavior: Next page stays empty, as do the following pages, and will show loading indicator forever.

### Context

- Official Open Library beta app ("by Internet Archive") for Android
- Currently running Android 13 but problem was identical with previous phone, ca. Android 10 or 11
- Logged in (Y/N): Y

### Notes from this Issue's Lead

#### Proposal & constraints

#### Related files

#### Stakeholders

**Note:** Before [making a new branch](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#making-changes-and-creating-a-pull-request) _or_ updating an existing one, please [ensure your branch is up to date](https://github.com/internetarchive/openlibrary/wiki/Git-Cheat-Sheet#working-on-your-branch).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.