Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
No captive portal popup on Samsung phones #351
When connecting to the YIO Remote AP, no captive portal pops up on Samsung devices.
A captive portal should pop up on the phone with a list of available wifi networks.
What actually happened:
Step 1: turned on YIO Remote
And I believe this is where it goes wrong:
Step 3: A message pops up from Android mentioning that there is no internet connection on this WiFi and whether I want to continue with no internet, or want to turn off wifi. When I choose connect anyway, the Android message disappears, and no pop-up is shown with the web interface to continue the WiFi configuration setup. I think the Android pop-up asking me that question, blocked the script from executing the pop-up web page from YIO.
I am then returned to the WiFi access points list in Android and see that I remain connected to the YIO Access Point. When I click on the more information button next to the YIO Access Point WiFi connection, I see the IP adres that has been assigned to me and I see the gateway. When I click on the gateway, it opens the website: yio.remote/index.php in my chrome browser. And there is the configuration screen!
One more weird thing to note is: the WiFi signal was not there in the auto discovered list, so I had to enter the SSID en WPA code manually. once I entered all credentials and pressed next, the access point was turned off and it went to the page yio.remote/wifi where I obviously got the error message: “this website cant be reached”. It also did not write the wpa_supplicant.conf file. Maybe because the device could not connect to my home network, as it was auto tuned to channel 13, and these RPi’s don’t work with these channels. Marton figured that out once I confirmed that the YIO software was loaded but no IP adres was showing in the settings page.
De-assembling the device to take out the SD card, we noticed there was no wpa_supplicant.conf file and got a template shared with me by Marton. Filled in the details manually and uploaded the file to SD card. Changed channel to one that is supported by RPi, and there it goes.
Related to this fix i did for my Arduino devices; https://www.hackster.io/voske65/captive-portal-for-wifi-ap-a14155
If i recall correctly the AP IP should be something like 172.x.x.x for Samsung devices (S7) to detect the captive portal. I'll see if i can fix it by providing the pull request.