Skip to content
This repository was archived by the owner on Feb 22, 2026. It is now read-only.
This repository was archived by the owner on Feb 22, 2026. It is now read-only.

App no longer loads on NVIDIA Shield #11

@moukrea

Description

@moukrea

There might be some timing related issue on Android TV, at least on NVIDIA Shield... Checks for Better xCloud injection seem to never be ready, as if they were happening before the page was fully loaded. A delay might help, but would punish other users, so we could wait for document.readyState to be "complete" before realizing our checks like so (for example)

private void ensureFullyLoaded(WebView webView) {
    webView.evaluateJavascript(
        "(document.readyState === 'complete')", 
        value -> {
            if ("true".equals(value)) {
                runChecks(webView);
            } else {
                new Handler().postDelayed(() -> ensureFullyLoaded(webView), 100);
            }
        }
    );
}

And maybe we could use this behaviour after, say, two retries so it's not the default behavior at all times (which implies to track how many times we reload the page)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions