jamesmontemagno / Xamarin.Plugins

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

ConnectivityChanged not fired when switching between cellular and wifi #280

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: (no cellular connection possible on simulators)

Expected Behavior

You said that this event is fired when connectivity is gained, changed or loosed. When switching between cellular and wifi connection, this event should be fired and the event args could eventually contains the ConnectionTypes added or removed.

Actual Behavior

Event is only fired when connectivity is gained or loosed.

Steps to reproduce the Behavior

Deploy a test application to a real device without any connection. Activate cellular connection => event fired Activate wifi connection => event not fired (but if we check the ConnectionTypes, Cellular has been replaced by Wifi) Desactivate wifi connection => event not fired (but if we check the ConnectionTypes Wifi has been replaced by Cellular) Desactivate cellular connection => event fired

Thanks in advance ;)

Tviljan commented 8 years ago

Any workarounds for this?

jamesmontemagno commented 8 years ago

Duplicate of: https://github.com/jamesmontemagno/ConnectivityPlugin/issues/3