Firebase + Flutter integration issue for IOS — “Default app has already been configured”

Problem:

App crashing when using Firebase auth with error -“Default app has already been configured”? Don’t worry, There’s solution for everything!

The issue is with FirebaseApp.configure() being called multiple times, and it has simple solution for it.

Solution:

Use below code, Instead of FirebaseApp.configure() as mentioned in the Firebase documentation.