Calling a URL WITHOUT opening it in a browser?

I am working on a statistics authorisation system for a friends mobile game (don’t ask!), and need to be able to call a URL from within Unity iOS and Android preferably without visibly opening it in the browser, so the URL is kept hidden.

For this reason, I don’t think Application.OpenURL will work in this case as that will open it in a browser, but I was wondering if it was possible another way, to do this?

That’s what the WWW class is for.

Is there any way to detect whether the connection was successful or not?

1 Like

WWW is obsolete now. Is there any other option to this ?

https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest.html

2 Likes

@VolodymyrBS , any idea on how to open external websites with WebRequest?