jamesmontemagno / Xamarin.Plugins

Cross-platform Native API Access from Shared Code!
MIT License
1.3k stars 380 forks source link

ConnectionTypes doesn't contains all connections #282

Closed dcasbonne closed 8 years ago

dcasbonne commented 8 years ago

Please take a moment to fill out the following (change to preview to check or place x in []):

This is a

Which plugin does this impact:

Version Number of Plugin: 2.1.2 Device Tested On: Nexus 5 Android 6.0.1 Simulator Tested On:

Expected Behavior

When cellular connection is active AND wifi connection too, ConnectionTypes should contains the 2 types. By default Android use wifi connection if the 2 are active so I don't really know if it's possible for you to know that but if you could it would be great !

Actual Behavior

Only Wifi is present in ConnectionTypes

Steps to reproduce the Behavior

Activate cellular and wifi connection on a device.

Thanks !

tomridl commented 8 years ago

On IOS 9.3.2, when both Wifi and Cellular are enabled, the ConnectionType contains only the "Other" type, and doesn't contain either Wifi or Cellular. When in Flight mode, with Wifi on, the ConnectionType also only contains "Other" and doesn't contain "Wifi". If just a cellular connection is active, the ConnectionType correctly shows "Cellular". Tested on iPhone 5.

Example: Airplane mode on, Wifi On img_2499

Example: Cellular and Wifi Connected img_2500

jamespettigrew commented 8 years ago

I'm having the same issue as @tomridl when using version 2.2.2, reverting to 2.1.2 resolves it.

jamesmontemagno commented 8 years ago

Moved to: https://github.com/jamesmontemagno/ConnectivityPlugin/issues/6