Hello, i wanted to know if there’s a way to check if the current device is connected to a network via blueprints? or if there’s a way in C++ i don’t mind, it’s just that i don’t know that much of C++.
I’ve found a way but read that it was a solution for windows, so in case you need it, i’m most interest in learning this for mobile ( Android & IOS)
This is what i’ve found:
if(InternetCheckConnection(L"http://www.google.com",FLAG_ICC_FORCE_CONNECTION,0))
{
cout << "connected to internet";
}
Ok so i figured it out, at least for mobile. There’s a blueprint node called “Connect to service” which returns an execution pin indicatend if it succeeded to connect or if it failed, one could use said node to know if the device is connected to a network.
Show External Login UI will bring up Google Play Service / IOS log in screen when you run it on a published game service. It’s probably not what you’re looking for.
@Niyo_official
Hi, HasActiveWiFiConnection is the most relevant node (I’m using BP) I’ve found, but it always returns me false on the android device, weither I’m connected or not (via 4g+). Do you know if there is something else to do? I’m trying via “launch” maybe it works only for downloaded app?
thanks