iOS: the app's settings in Settings, not behind a shake; iPhone upright (#445)
The server address and the player token were set from alerts that opened on shaking the phone, which nobody finds. Settings now has a This device section in the app: the server, the player token and its address, and a Make button that creates an API token and hands it straight to the app's keychain. The app sends what it has at ready (appSettings) and takes setServer, setToken and clearToken; a new server rebuilds the web view as the alert did. The first-launch prompt and the Cannot reach alert stay native, since there is no page then. The iPhone is portrait only; the iPad keeps all four orientations, which Split View and Slide Over need (#434 checked the iPad's layout). Build 14. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Foundation
|
||||
|
||||
/// Which ipx-web the app shows. Asked for on first launch; shaking the phone asks again.
|
||||
/// Which ipx-web the app shows. Asked for on first launch; changed in the page's Settings (#445).
|
||||
/// `-ipx.server <url>` on the launch arguments overrides it for that run (UserDefaults' argument
|
||||
/// domain), which is how a test points the app somewhere else.
|
||||
enum Server {
|
||||
|
||||
Reference in New Issue
Block a user