Add captive portal detection for iOS, Android, and Windows#152
Open
miqcie wants to merge 1 commit intoktomy:mainfrom
Open
Add captive portal detection for iOS, Android, and Windows#152miqcie wants to merge 1 commit intoktomy:mainfrom
miqcie wants to merge 1 commit intoktomy:mainfrom
Conversation
When the clock is in AP mode, connecting devices now auto-detect the captive portal and prompt users to open the settings page: - Android: /generate_204 redirect - Windows: /connecttest.txt redirect - iOS: /hotspot-detect.html meta-refresh Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follows up on PR #143 — this is a focused PR with just the captive portal detection, as requested.
When the clock is in AP mode, most devices probe specific URLs to detect captive portals. Without these endpoints, users have to manually navigate to the clock's IP to configure it. This PR adds three lightweight handlers so the settings page opens automatically:
/generate_204redirects to//connecttest.txtredirects to/data/hotspot-detect.htmlmeta-refreshes to/No changes to the existing settings UI or configuration flow. Just redirect plumbing that improves the first-time setup experience in AP mode.
Changes
src/ServerManager.cpp— two route handlers (6 lines)data/hotspot-detect.html— minimal HTML file for iOS detection (4 lines)Test plan
pio run)