Skip to content

Reachability seems buggy on iOS 8 #1086

Closed
@kchromik

Description

@kchromik

As the title already says, the new reachability feature seems a bit buggy on iOS 8. The listener seems to not be called each time the network status changes. Furthermore, the network reachability status return by the listener closure doesn't return the correct status.

The status values seem to be very random and don't represent the current state. I've tested on several iPhone devices and simulator. On iOS 9 everything works as expected.

Activity

cnoon

cnoon commented on Feb 27, 2016

@cnoon
Member

Interesting. This will take some investigation on our end. I don't have access to an iOS 8.x device right now, so I'll only be able to test with the simulator which isn't as helpful.

self-assigned this
on Feb 27, 2016
kchromik

kchromik commented on Feb 29, 2016

@kchromik
Author

Btw - I switched back to https://github.com/ashleymills/Reachability.swift, and there it works properly (Simulator & Device). I have access to iOS 8 devices, so let me know if there is something I could test.

cnoon

cnoon commented on Mar 19, 2016

@cnoon
Member

Okay @kchromik, I've switched over to using IPv4 on iOS 8.x in ef756b0. Would you be able to test against the latest changes on master to see if they resolve your problems?

added this to the 3.3.0 milestone on Mar 19, 2016
KingOfBrian

KingOfBrian commented on Mar 19, 2016

@KingOfBrian
Contributor

Also, can we test that on an iOS8 device built on the iOS9 SDK? I don't think you want the compile-time check, but a runtime check (Which is why I thought it would be better to stick with ipv4 for all).

cnoon

cnoon commented on Mar 19, 2016

@cnoon
Member

The #available check does provide a runtime check as well @KingOfBrian. The availability checks provide both compile time checks for API usage as well as runtime logic branching behavior.

KingOfBrian

KingOfBrian commented on Mar 21, 2016

@KingOfBrian
Contributor

Ah sweet, I did not know that! Takes time to un-learn my obj-c ways.

modified the milestones: 3.4.0, 3.3.0 on Mar 23, 2016
cnoon

cnoon commented on Apr 3, 2016

@cnoon
Member

Okay, I finally managed to track down an iOS 8.2 device. Looks like the IPv4 changes for iOS 8 were the correct solution. Reachability monitoring is now working as expected on both iOS 8 and 9. 👍🏼

modified the milestones: 3.3.0, 3.4.0 on Apr 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @KingOfBrian@cnoon@kchromik

      Issue actions

        Reachability seems buggy on iOS 8 · Issue #1086 · Alamofire/Alamofire