sharkbait
sharkbait

Reputation: 3040

Determine if connection is on 3G or WIFI network

I would know if there is a way to determine if the application connected using 3G or WIFI network.

Upvotes: 0

Views: 84

Answers (1)

damian
damian

Reputation: 1419

You're not going to be able to determine this on the server side only. The only thing you can check is the HTTP user agent, which will help you figure out the device. However a connection is just a connection, there's no way to determine how it is connected without the device telling you. If you are developing a local mobile application then you can either do different logic on the device or send additional information about the device's connection.

Upvotes: 1

Related Questions