[Firebase Mobile] Incompatibility issue with other Firebase plugin (Analytic, Crashlytic) in MABS 8.0
Question
firebase-mobile
Mobile icon
Forge component by David Sousa
Application Type
Mobile

Hello OS Forums,

I want to ask is the newest version of Firebase Mobile plugin for the MABS 8.0 builds is not compatible with any other official OS supported Firebase plugins (such as Perfomance Monitoring, Analytics)?

Because we've tried to re-build on our currently on-boarding mobile application it failed to generate the native platform with the newest MABS 8.0. We had a requirement to implement Firebase performance monitoring feature to our mobile app. And then because MABS 7.2 will be deprecated at the end of this month we have to upgrade to the latest one, but unfortunately we found this issue. The build log detail:

[2022-03-09T07:31:54.794Z] [ERROR] [Build] Note: Some input files use or override a deprecated API.
[2022-03-09T07:31:54.794Z] [ERROR] [Build] Note: Recompile with -Xlint:deprecation for details.
[2022-03-09T07:31:54.794Z] [ERROR] [Build] source/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:808: error: cannot find symbol
[2022-03-09T07:31:54.794Z] [ERROR] [Build]           final boolean activated = FirebaseRemoteConfig.getInstance().activateFetched();
[2022-03-09T07:31:54.794Z] [ERROR] [Build]                                                                       ^
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   symbol:   method activateFetched()
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   location: class FirebaseRemoteConfig
[2022-03-09T07:31:54.794Z] [ERROR] [Build] source/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:858: error: cannot find symbol
[2022-03-09T07:31:54.794Z] [ERROR] [Build]           byte[] bytes = FirebaseRemoteConfig.getInstance().getByteArray(key);
[2022-03-09T07:31:54.794Z] [ERROR] [Build]                                                            ^
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   symbol:   method getByteArray(String)
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   location: class FirebaseRemoteConfig
[2022-03-09T07:31:54.794Z] [ERROR] [Build] source/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:895: error: cannot find symbol
[2022-03-09T07:31:54.794Z] [ERROR] [Build]           settings.put("developerModeEnabled", remoteConfigInfo.getConfigSettings().isDeveloperModeEnabled());
[2022-03-09T07:31:54.794Z] [ERROR] [Build]                                                                                    ^
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   symbol:   method isDeveloperModeEnabled()
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   location: class FirebaseRemoteConfigSettings
[2022-03-09T07:31:54.794Z] [ERROR] [Build] source/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:916: error: cannot find symbol
[2022-03-09T07:31:54.794Z] [ERROR] [Build]               .setDeveloperModeEnabled(devMode);
[2022-03-09T07:31:54.794Z] [ERROR] [Build]               ^
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   symbol:   method setDeveloperModeEnabled(boolean)
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   location: class Builder
[2022-03-09T07:31:54.794Z] [ERROR] [Build] source/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:917: error: cannot find symbol
[2022-03-09T07:31:54.794Z] [ERROR] [Build]           FirebaseRemoteConfig.getInstance().setConfigSettings(settings.build());
[2022-03-09T07:31:54.794Z] [ERROR] [Build]                                             ^
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   symbol:   method setConfigSettings(FirebaseRemoteConfigSettings)
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   location: class FirebaseRemoteConfig
[2022-03-09T07:31:54.794Z] [ERROR] [Build] source/platforms/android/app/src/main/java/org/apache/cordova/firebase/FirebasePlugin.java:931: error: cannot find symbol
[2022-03-09T07:31:54.794Z] [ERROR] [Build]           FirebaseRemoteConfig.getInstance().setDefaults(defaultsToMap(defaults));
[2022-03-09T07:31:54.794Z] [ERROR] [Build]                                             ^
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   symbol:   method setDefaults(Map<String,Object>)
[2022-03-09T07:31:54.794Z] [ERROR] [Build]   location: class FirebaseRemoteConfig
[2022-03-09T07:31:54.794Z] [ERROR] [Build] Note: Some input files use or override a deprecated API.
[2022-03-09T07:31:54.794Z] [ERROR] [Build] Note: Recompile with -Xlint:deprecation for details.
[2022-03-09T07:31:54.794Z] [ERROR] [Build] Note: Some input files use unchecked or unsafe operations.
[2022-03-09T07:31:54.794Z] [ERROR] [Build] Note: Recompile with -Xlint:unchecked for details.
[2022-03-09T07:31:54.794Z] [ERROR] [Build] 6 errors
[2022-03-09T07:31:54.794Z] [ERROR] [Build] FAILURE: Build failed with an exception.
[2022-03-09T07:31:54.794Z] [ERROR] [Build] * What went wrong:
[2022-03-09T07:31:54.794Z] [ERROR] [Build] Execution failed for task ':app:compileDebugJavaWithJavac'.
[2022-03-09T07:31:54.794Z] [ERROR] [Build] > Compilation failed; see the compiler error output for details.
[2022-03-09T07:31:54.794Z] [ERROR] [Build] * Try:
[2022-03-09T07:31:54.794Z] [ERROR] [Build] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[2022-03-09T07:31:54.794Z] [ERROR] [Build] * Get more help at https://help.gradle.org
[2022-03-09T07:31:54.794Z] [ERROR] [Build] BUILD FAILED in 2m 36s
[2022-03-09T07:31:54.794Z] [ERROR] [Build] Command failed with exit code 1: source/platforms/android/gradlew cdvBuildDebug -b source/platforms/android/build.gradle --parallel
[2022-03-09T07:31:54.809Z] [ERROR] [Build] Build failed with the following error: There was an error compiling the Cordova plugin main/java/org/apache/cordova/firebase/FirebasePlugin.java:808: error: cannot find symbol. Check your plugin configurations and try again.

Any clue or workaround to consolidate this issue? We've been using this plugin for the past year and it's been a solid work, but now we need the performance monitor feature for our customer and keep the push notification feature as well.

Thanks before.

Champion

Hi,

This plugin already includes performance monitoring and the latest version works with MABS 8. Is there anything in the OS supported version that you would like to have in this one?

Best regards,

David

Hello David,

Correct me if I wrong but in the latest version (1.0.11) the performance monitoring is not supported anymore and when I try to run the process (via a real mobile device) the mobile app got crashed. That is why we've tried to use other Firebase plugin for the MABS 8.0 builds. This is the original node logic flow inside the firebase mobile (v1.0.11) module:

All the client actions were redirected to the False branch, and then I try to modified the node to enable the function, but whenever the process is being executed the app always got crash (tested on Android 12). Hence why it's been set to false

Hi, any news on this compatibility issue? We looking forward to this because the MABS 7.2 will be deprecated in 24 March 2022 and if we have to upgrade the MABS the performance monitoring would not be functioning anymore.. thank you, any news will be appreciated :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.