An iPhone app is on the way
Why it matters: We've started an iPhone app that works like the Android app, and the Android app now needs Android 10 or later.
We’ve started building an iPhone app for EyeOnMajors that works like the Android app. It isn’t in the App Store yet: it runs on Apple’s iPhone simulator while we finish Google sign-in and notifications for it. So far it has:
- A sign-in screen, then three tabs. Links open in the tab they belong to.
- If you open a page while signed out, or your session has expired, you go back to that page after signing in.
- Pull to refresh, and clear screens when you’re offline or a page can’t load, with a Try again button.
- The app only shows EyeOnMajors pages. Links to other sites open in a separate browser sheet.
- Short notices after you save something can be read with VoiceOver, and they stay on screen longer when VoiceOver is on.
The site is ready for it: it can now send notifications to iPhones and accept Google sign-in from the iPhone app. The iPhone app will need iOS 18 or later. The Android app now needs Android 10 or later.
Under the hood: Both apps are native shells around the site’s own pages, built with Hotwire Native. They both run the same shared set of routing checks, so a link goes to the same place on either phone.
Commits (7)
-
3650192Mobile: Android 10+ and iOS 18+, and the server ready for the iOS app -
e6b21d7iOS app shell at parity with Android, checked on the simulator -
2f57c94iOS shell: review fixes (origin tests prove the WebKit rule, links, fail closed) -
87d8a75iOS shell: second audit fixes (error kinds, Turbo-redirect test, docs) -
60a21d6iOS shell: Codex audit fixes (CSP guard, full simulator acceptance) -
9ee1db4iOS shell: Codex audit 5 fixes (error recovery check, banner accessibility) -
533ff67iOS: sign-in pages hide the native bar too (after merging the logo header)
Files Changed (73)
.github/workflows/android.yml | 2 +- .github/workflows/ios.yml | 62 ++++- android/app/build.gradle.kts | 11 +- .../com/norafoundry/eyeonmajors/AppRoutesTest.kt | 160 ++++------- app/controllers/dev/app_checks_controller.rb | 36 +++ app/controllers/dev/origin_checks_controller.rb | 68 ++++- .../hotwire_native/configurations_controller.rb | 6 +- .../native/google_sign_ins_controller.rb | 24 ++- app/controllers/native/push_devices_controller.rb | 15 +- .../native/test_notifications_controller.rb | 7 + app/helpers/native_app_helper.rb | 18 +- .../bridge/notification_permission_controller.js | 4 +- .../bridge/push_registration_controller.js | 7 +- app/models/application_push_device.rb | 10 +- app/models/application_push_notification.rb | 16 +- app/models/native_google_sign_in.rb | 40 ++- app/views/dev/app_checks/recovered.html.erb | 3 + app/views/dev/app_checks/tab_links.html.erb | 12 + app/views/dev/origin_checks/links.html.erb | 7 + app/views/dev/origin_checks/page.html.erb | 7 +- app/views/layouts/dev_origin_checks.html.erb | 15 + app/views/shared/_sign_in_options.html.erb | 2 +- bin/check-path-configuration | 29 ++- bin/setup | 12 + config/hotwire_native/ios_v1.json | 70 +++++- config/push.yml | 23 ++- config/routes.rb | 14 + docker-compose.production.yml | 10 + docs/mobile/README.md | 82 +++++- docs/mobile/feature-parity.md | 121 +++++--- docs/mobile/roadmap.md | 13 +- docs/sign_in_providers.md | 19 +- ios/.gitignore | 5 + ios/.swift-format | 15 + ios/Config/Debug.xcconfig | 9 + ios/Config/Local.xcconfig.example | 3 + ios/Config/Release.xcconfig | 4 + ios/Config/Shared.xcconfig | 3 + ios/EyeOnMajors/AppConfig.swift | 35 +++ ios/EyeOnMajors/AppCoordinator.swift | 180 +++++++++++- ios/EyeOnMajors/AppDelegate.swift | 79 +++++- ios/EyeOnMajors/AppRoutes.swift | 150 ++++++++++ ios/EyeOnMajors/AuthStateComponent.swift | 22 ++ ios/EyeOnMajors/ErrorScreen.swift | 70 +++++- ios/EyeOnMajors/Info.plist | 49 +++ ios/EyeOnMajors/NoticeBanner.swift | 123 +++++++- ios/EyeOnMajors/OriginContentRules.swift | 77 +++++- ios/EyeOnMajors/PendingDestination.swift | 49 +++ ios/EyeOnMajors/RouteHandlers.swift | 106 +++++++ ios/EyeOnMajors/SceneDelegate.swift | 63 ++++ ios/EyeOnMajors/TokenDigest.swift | 10 + ios/EyeOnMajors/WebViewController.swift | 70 +++++ ios/EyeOnMajorsTests/AppRoutesTests.swift | 69 +++++ ios/EyeOnMajorsTests/AppSetupTests.swift | 37 +++ ios/EyeOnMajorsTests/OriginContentRulesTests.swift | 35 +++ ios/EyeOnMajorsTests/PathConfigurationTests.swift | 80 +++++ ios/EyeOnMajorsTests/PendingDestinationTests.swift | 63 ++++ ios/EyeOnMajorsUITests/ParityUITests.swift | 291 ++++++++++++++++++- ios/bin/generate | 6 + ios/bin/test | 22 ++ ios/project.yml | 110 +++++++ lefthook.yml | 15 +- podman-compose.production.yml | 6 + podman-compose.staging.yml | 4 + test/bin/check_path_configuration_test.rb | 56 ++++ test/controllers/dev_origin_checks_routes_test.rb | 18 +- test/integration/content_security_policy_test.rb | 23 ++ test/integration/hotwire_native_test.rb | 56 ++++- test/integration/m1_shell_test.rb | 36 ++- test/integration/native_google_sign_in_test.rb | 70 +++++- test/integration/native_push_devices_test.rb | 51 ++++ .../application_push_device_concurrency_test.rb | 6 +- test/native/routing_cases.json | 491 ++++++++++++++++++++++++++++++ 73 files changed, 3313 insertions(+), 279 deletions(-)