Firebase auth & database operations extremely slow on iOS 10 only

I’ve got an Ionic v1.3 app running the Firebase Javascript SDK v2.4.2.

For ALL devices that have recently upgraded to iOS 10, the firebase login is now at extremely slow (10 seconds to 1 minute, sometimes timing-out), and database read operations are also super slow.

As for write operations… users are attempting to save data, which seems to complete with success locally, but then when they return to that same screen at a later point, they find that the data was never saved and is now lost forever.

On iOS 9 and on Android the app is still working fine. This is 100% happening on my devices running iOS 10, as well as all other users who have recently upgraded their iPhones/iPads.

This problem has been constant and the performance has not changed at any point since the iOS 10 update. I just tried to update my iPhone to iOS 10.0.2 and the problem is still present.

Please help! Lots of complaints from users :neutral_face:

I have found the fix. To speed things up with Firebase servers, you need to update index.html’s Content-Security-Policy META tag to include: connect-src: wss://*;

So, aside from all the otther *-src values, you should have something like this:

<meta http-equiv="Content-Security-Policy" content="default-src *; connect-src: wss://*;">

Apparently this is a new security requirement for iOS 10.


This doesn’t solve my issue. Auth and DB operations are still slow on ios10