belkevich / reachability-ios

Flexible network reachability with blocks for iOS and OS X.
MIT License
68 stars 15 forks source link

Using 2.0.0 Reachability Status reports incorrectly #4

Open michaelarmstrong opened 10 years ago

michaelarmstrong commented 10 years ago

Tested in 1.2.0 and verified as working. Tested in 2.0.0 and verified as broken.

To reproduce on an iOS 7 device.

Expected:

Actual:

belkevich commented 10 years ago

Is this bug in example app or in your app?

michaelarmstrong commented 10 years ago

It was in my app, i tried a few things, then downloaded the example app from the tar ball and happens in that too.

belkevich commented 10 years ago

Unfortunately I don't have any device to debug now. I'll check it tomorrow. Stay tuned =)

belkevich commented 10 years ago

I've checked the example app and everything works fine on my iphone (iOS 7.1.2). Could you check the example app on other devices? Also, please, provide the console output of the example app. I'll try to reproduce this bug on another device tomorrow

michaelarmstrong commented 10 years ago

(NORMAL STATE) AIRPLANE MODE DISABLED, 4G ACTIVE & WORKING, WIFI ENABLED BUT NOT CONNECTED.

2014-07-10 10:02:09.019 SampleApp[4942:3b07] Reachability Flag Status: WR t------

THEN AIRPLANE MODE ENABLED

2014-07-10 10:02:50.325 SampleApp[4942:6907] Reachability Flag Status: -- ------- 2014-07-10 10:02:53.212 SampleApp[4942:5f0b] Reachability Flag Status: WR tc-----

iOS 7.1 on an iPhone 5S

I'll try some other devices / configurations today.

belkevich commented 10 years ago

I've checked this bug on several devices and everything fine. Unfortunately, there are no 4G in Ukraine. So, I unable to test it in this type of cellular networks. Every device I've used had iOS 7.1.2. And my console output was a bit different. It was just "WR t------" without "c" like in you output "WR tc-----". May be it's related to 4G networks. But I don't know for sure.

Do you have any results with other devices?

belkevich commented 10 years ago

Hello Michael, I'm still interesting in this issue. Can you show me the piece of code that works fine with 1.2.0 version? Thank you!