iOS Question How to detect and handle status of network connection?

karld

Active Member
Licensed User
Longtime User
Was testing my latest app and I am using Firebase to download an update file.

That is all working fine.

BUT

When I was testing in Airplane mode the app will just abort when there is no network connection.

I am assuming there is a method of checking to see if the network connection is active?

I can skip update download if no network available. Just not sure how to test for it.
 

karld

Active Member
Licensed User
Longtime User
Figured it out!

I used HttpUtils2 to hit Google and see if I got a response.

Used that to determine network state.

Worked perfectly.
:D
 
Upvote 0
Top