Changes related to Firebase Components

Hello Guys, Since the new update, the usage of Firebase Components has changed.

  • First of all, if you are using any of the Firebase Components, make sure to drag Firebase Core in order to achieve functionality in your application.

  • Make sure to import google-services.json in your assets, It’s mandatory since in our effort to minimize user hassles, we’ve integrated a json parser so whenever you open your app, no need to pass full credentials and initialize the Firebase SDK.

  • For FCM, if you want notifications to be delivered if app is open and if it isn’t open too, make sure to add your logic to display notification like :

We’ve made this custom since we are leaving it to users how they wish to handle their Notifications if their app is open.

  • For Firebase Crashlytics to work properly, make sure to configure your app to send unsent crash reports to the Firebase Servers (if Any).
    image

This will help you find bugs and crashes occurring in your app that will help you to improve your app and reduce crashes.
Crashlytics shows all reports like this :

  • For Firebase Analytics, you can log and event by using the block LogEvent and supplying it data in the form of a dictionary

  • For Firebase Performance to monitor you application’s performance, start a trace on Screen initialize :
    image

And Increment your performance statistics whenever you get success in any operation within your app. Let’s say I’m fetching data from an API using web component and when I get success, I wish to increase the statistics of my application’s performance. I can do like :

image

This will help you take a look at your app’s performance.

That’s how you can use Firebase Components. If you face any issue, make a topic and let the team know.

Cheers. :beers:
AB Team

6 Likes

Hi Ajdeveloper,

I wanted to reach out to you regarding an issue I’ve been encountering while working on my app. Specifically, whenever I integrate Firebase components into my application, I seem to face difficulties when attempting to export the app. Unfortunately, I’m unable to pinpoint the exact cause of this problem.

I’ve double-checked my code and configurations, but I’m still unable to resolve the issue. It’s quite puzzling, and I’m not entirely sure why it’s happening.

Do you have any insights or suggestions on how I could troubleshoot this problem? Any assistance you could provide would be greatly appreciated.

Looking forward to hearing from you.

Best regards,
Sharad Sagar…