iOS: FIRApp.configure() on a thread other than the main thread

291 views
Skip to first unread message

sri...@laddoo.net

unread,
Jan 14, 2017, 12:19:12 PM1/14/17
to Firebase Google Group
Is it safe to call FIRApp.configure() on a thread other than the main thread in iOS? I'm using Firebase for analytics and crash reporting and might use it for push notifications in the future. The initial call takes ~30ms and I'd like to keep that out of the init loop for faster app load times. I couldn't find any details about this in the documentation.

Thanks!
Sridhar 

Kato Richardson

unread,
Jan 27, 2017, 2:19:28 PM1/27/17
to Firebase Google Group
Hello Sridhar,

Great questions. From what I can tell, FIRApp and Firebase Analytics are both built to be thread safe on iOS. We can't see any immediate issues here, but I don't think this has been tested widely and there could be gaps in some of the specific feature modules. For example, I recall that we had an issue during initial launch, fixed now, when Crash Reporting was used beside SQL Lite, because it was not concurrency safe.

☼, Kato



--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/e766a725-14d8-4363-babe-c11b4f55e2e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages