I am trying to connect the AI Companion to my iphone. The QR code comes up, my phone scans it, and then the phone does nothing, and doesn't load the app. About a minute later, the browser shows me an error message that just says "Companion Connection Error".
I am not sure why it will not connect and I do not see any errors on the phone, it is just stuck on the original page that asks to scan or enter the code.
I am testing with an app that has nothing other than a button. It works on the emulator. I have ensured that the computer and phone are on the same wifi network.
Yes. I am doing this at home and both the laptop and the phone are connected to the same WiFi network. Are there any other known issues? Do I need to turn the cellular data off?
Yes. It disappears and the text code is filled into the box. And then nothing happens. After a minute or so, the browser pops up an error of “Connection Error”.
Which browser are you using? There have been some issues recently with Chrome. I'm curious if you're using Chrome and temporarily switch to another browser whether you see the same issues.
I wasn't able to get it to work on Firefox either. However, I did try on a mac, and it worked there. However, I would really like to figure out why the Windows laptop isn't working - that is the primary device, and the mac is borrowed.
Two possible things that might be an issue on Windows:
If you have a browser extension installed like HTTPS Everywhere, it may be trying to load App Inventor over HTTPS which will break how App Inventor connects to the iOS companion.
If you have a firewall configured on the computer, ensure that the browsers are allowed to make outgoing connections on TCP port 8001, which is the port used by the browser to talk to the companion app on the iOS device. If outgoing connections are being blocked, that would explain why all browsers fail to connect on Windows.
Hmmm… I tried disabling Windows defender completely, as well as enabling but with an allow rule for tcp port 8001. None of these helped. I confirmed that Firefox isn’t using HTTPS-only mode. I am out of ideas, but we did manage to find an old chromebook that is working just fine with both a phone and a Mac. I guess I’ll just give up on Windows for now :). Thank you for your help.