IsConnected flag not working for iOS (ipad 2.0, and ipad Pro)
nitrouscutter opened this issue · 2 comments
CrossConnectivity.Current.IsConnected is always returning true on my ipad. The change event is never getting triggered after device goes offline. This flag works on Android and UWP just fine, but doesn't seem to do anything on this ipad.
Version Number of Plugin: 3.03
Device Tested On: iPad (iOS v 9.3.5, Model - ipad 2.0)
Version of Xamarin: Xamarin.Forms 2.5.0
Steps to Reproduce:
Open xamarin app using ipad 2.0 and this connectivity plugin. Bind a view property to the IsConnected flag. Toggle airplane mode and wait for result.
Expected Behavior:
CrossConnectivity.Current.IsConnected should return false when ipad 2.0 is in airplane mode. It also should trigger the changed event which it doesn't.
Actual Behavior:
IsConnected never changed even when confirmed offline with airplane mode and any sort of wireless connection.
I found this actually to be a bug dealing with the background service when you minimize the app to set the device to airplane mode. That is why that online status changed event never gets triggered.
Closing this ticket