feat(native): the 'server not reachable' screen names the cause, small, for a report

A load that failed sent the app to the address screen with a general message only, and a tester's screenshot told nothing. The web view's own error (net::ERR_..., an HTTP status, NSURLErrorDomain and its code, a client certificate the proxy asked for) is kept natively and shown under the message once.
This commit is contained in:
Maurice
2026-11-12 10:11:01 +01:00
parent 46b9df54bf
commit a1d3ffc2ce
8 changed files with 81 additions and 7 deletions
+6 -1
View File
@@ -18,7 +18,12 @@ export interface TrekShellPlugin {
* newer one (SERVER_CHECK in TrekServerStore). Set only while no server is,
* so the address screen can check it again, pre-filled.
*/
getServer(): Promise<{ url: string | null; previousUrl?: string | null }>;
/**
* The server picked, the one before an update asked to check it again, and
* why its page did not load last time (taken once; builds before 5.1.4 leave
* it out).
*/
getServer(): Promise<{ url: string | null; previousUrl?: string | null; failure?: string | null }>;
/**
* Remembers the server and loads it. The current page is gone afterwards.
* `signInHosts` are the hosts of a proxy's sign-in page in front of it