Closed juliocampossalcedo closed 4 years ago
Same issue. @juliocampossalcedo do you fixed it?
Same issue. @juliocampossalcedo do you fixed it?
No, I changed of plugin to https://ionicframework.com/docs/native/firebase-crash and it works.
@juliocampossalcedo I finally found how to fix it correctly. First of all, cordova-plugin-google-service is depricated and because of it, FirebaseCrashlytics 1.2.0 is not initialized correctly because it can`t find google_api: https://github.com/chemerisuk/cordova-support-google-services So, the solution is to add these lines in config.xml:
<edit-config file="res/values/strings.xml" mode="merge" target="/*">
<string name="google_app_id">1:XXXX:android:YYYY</string>
<string name="google_api_key">AAAAA-BBBBB</string>
</edit-config>
and:
<preference name="GradlePluginGoogleServicesEnabled" value="true" />
<preference name="GradlePluginGoogleServicesVersion" value="4.2.0" />
Now cordova-android should pe upgraded to 9.0: https://cordova.apache.org/announcements/2020/06/29/cordova-android-9.0.0.html
That`s all. Now FirebaseCrashlytics is working how was expected.
Expected Behavior
When I call the function logException(message) my android app should send the log to my Crashlytics.
Actual Behavior
When I call the function logException(message) my android app is closed unexpectedly without any log.
Steps to Reproduce the Problem
Just call the method in this way:
When I call the method logException of this services, my app is closed.
Specifications