Ad

Why Does My Swift App Crash Whenever I Go Offline?

I have an app that requires the user to leave the app to connect to another device's wifi network. However, when I change to that wifi network and come back to the app, it seems as if Firebase or 'Google Data transport support' crashes the app saying 'there's no internet connection' when I already know there's no connection so how would I just ignore the error and carry on.

I used a breakpoint exception to find out where in code is causing the error and it's pointing me to this:

Xcode Screenshot

Nowhere in my code that I've written should cause that error as I'm not using firebase to query anything yet.

Ad

Answer

Run pod update to pick up the fix that released today.

Details at https://github.com/firebase/firebase-ios-sdk/issues/3530

Ad
source: stackoverflow.com
Ad