Response to the app crashing issue when integrating FCM into B4A:
Based on your description, the main issue is probably related to the dependency settings or versions of the Firebase libraries. Follow these steps to fix the problem:
1. **Check full logs (Unfiltered Logs)**:
- Enable **Unfiltered Logs** via B4A > Logs > menu
- Errors related to `ClassNotFoundException` or `MethodNotFoundException` usually indicate dependency issues
2. **Check library versions**:
- FirebaseAnalytics 3.01 and FirebaseNotifications 3.11 libraries may be incompatible
3. **Order of adding resources in the manifest**:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
- Try this new order
4. **Check third-party dependencies**:
- Make sure you have updated the Android SDK to the latest version
- In the Android SDK Manager, these packages should be installed are:
- Google Play Services
- Google Repository
- Android Support Repository
5. **Advanced Settings**:
- In the `google-services.json` file, make sure:
- ``package_name`` exactly matches the name of the project package
- Firebase Analytics and Cloud Messaging services are enabled in the Firebase console
6. **Development Environment Update**:
- Install the latest version of B4A (at least version 12.0)
- If necessary, use the B4A Bridge environment instead of USB Debugging
After applying these changes, recompile the project and check the logs. If the problem persists, submit the specific error that appears in the log for further analysis.