udaryl
Member
Hi everyone,
I'm trying to integrate Firebase Cloud Messaging (FCM) into my B4A app, but I'm encountering a problem where the app crashes immediately on startup.
Here are the details:
- I’ve downloaded the correct `google-services.json` from Firebase and placed it in the root directory of my B4A project.
- The package name in Firebase exactly matches my project.
- These are the Firebase-related lines I’m trying to use in the manifest editor:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
- The app **only works when I include just the first line**:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
As soon as I add the second or third line, the app crashes instantly on startup — it doesn't even reach the main activity.
- These are the libraries I have enabled in my project:
- ByteConverter 1.10
- Core 13.01
- FirebaseAnalytics 3.01
- FirebaseNotifications 3.11
- OkHttp 1.50
- OkHttpUtils2 3.04
- Phone 2.60
- RuntimePermissions 1.20
- SharedPreferences 1.00
- StringUtils 1.12
- XUI 2.32
I’ve followed the Firebase integration tutorial as closely as possible. Is there something I’m missing? Maybe a dependency or version issue?
Any help or suggestions would be greatly appreciated.
Thanks!
I'm trying to integrate Firebase Cloud Messaging (FCM) into my B4A app, but I'm encountering a problem where the app crashes immediately on startup.
Here are the details:
- I’ve downloaded the correct `google-services.json` from Firebase and placed it in the root directory of my B4A project.
- The package name in Firebase exactly matches my project.
- These are the Firebase-related lines I’m trying to use in the manifest editor:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
- The app **only works when I include just the first line**:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
As soon as I add the second or third line, the app crashes instantly on startup — it doesn't even reach the main activity.
- These are the libraries I have enabled in my project:
- ByteConverter 1.10
- Core 13.01
- FirebaseAnalytics 3.01
- FirebaseNotifications 3.11
- OkHttp 1.50
- OkHttpUtils2 3.04
- Phone 2.60
- RuntimePermissions 1.20
- SharedPreferences 1.00
- StringUtils 1.12
- XUI 2.32
I’ve followed the Firebase integration tutorial as closely as possible. Is there something I’m missing? Maybe a dependency or version issue?
Any help or suggestions would be greatly appreciated.
Thanks!