Crashes are not getting logged : React native Firebase - Crashlytics ( Android) - android

React native version : 0.59
react-native-firebase": "^5.5.0",
I'm able to log crashes with iOS but in Android its not getting logged in crashlytics dashboard.
I followed the official documentation but it didn't work.
Please share the steps or solution if anyone has done this for React-native-Android.
Below is my device log saying :Crashlytics build id is missing
Here is my android/app/build.gradle
and here is my android/build.gradle

Related

Why google signin not working when i use native app package name and keystore files to flutter android app?

I have native android app which has google signin feature..i am able to login into google
I have implmented the flutter application for android with same application ID(i.e same as native android app in first point)
I am getting the below error while signin with flutter app E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null)
Could you please provide solution to get out of this issue
Note: i used same keystore files in native and flutter app
You should create "key.properties" file in your_project/android/(key.properties will be here) then write inside these;
storePassword=yourPassword
keyPassword=yourPassword
keyAlias=key
storeFile=\\key.jks
(Note: the key.jks is in "your_project/android/app/... or /your_project/... I put it two different place and I don't know which one is working :D )
Then it may be work. If you can't, you can send e-mail to Google to change your keystore of your app in the store.

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/iid/FirebaseInstanceId; React Native App

I've been trying to run my react native application, but it crashed when started and the debugger didn't return any error, so I checked the log cat in Android Studio and it shows me the following error: java.lang.NoClassDefFoundError: Failed resolution of: Lcom / google / firebase / iid / FirebaseInstanceId;
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceId"
The React-Native version that I am using is: 0.61.5
And the version of react-native-firebase that I have installed is 5.6.0
It has already been a recent failure, since previously the app worked correctly and I have not made any changes to the firebase integration either
To debug this, first I would suggest running adb logcat and seeing what Java error you are getting. If it errors out on the not being able to find the required Java classes, then try adding the following to your project:
app/build.gradle file (dependencies section):
implementation 'com.google.firebase:firebase-iid'
(You might need to provide a version for this package as well)
I have getting same error, I fixed this error by uninstalling old version and installing new version of push notification.
uninstall:
npm uninstall react-native-push-notification
install:
npm i react-native-push-notification
since react-native-push-notification upgraded to new version v7.x so that, while installing app it give above error.
checkout this -> https://www.npmjs.com/package/react-native-push-notification
There is an issue, in react-native-push-notification (FirebaseInstanceId has been deprecated and now removed). Sounds like you are using a lib that is using that that here. It should be fixed later on, but for now you can add the following to your android/build.gradel file.
buildscript {
ext {
...
firebaseMessagingVersion = "21.0.0"
}
I had also to update these libs (you will get compile errors if you don't, so you may have others to update):
- "react-native-device-info": "^5.5.8",
+ "react-native-device-info": "^8.1.3",
- "react-native-push-notification": "^7.3.0",
+ "react-native-push-notification": "^7.3.1",
This is in reference to this issue
wix/react-native-notifications
This lib having issue with refreshToken() Method.
Didn't find class "com.google.firebase.iid.FirebaseInstanceId"
so just remove / reinstall the package, if still error is coming then we have to wait for next bug fix release of this lib or
we can manually change native code to make it working.
below is link of lib
https://github.com/wix/react-native-notifications/issues?q=FirebaseInstanceId

How to test new Firebase Crashlytics SDK?

I've implemented the new Firebase Crashlytics SDK replacing the old Fabric SDK. So, I need to test if this new changes reports something to Firebase Crashlytics Console, there is a web inside developer guide test-implementation-new-sdk but it is giving me a 404 error. So, I don't know how to test a crash to see if the sdk is reporting to the platform correctly.
Any advice?
I've tried with:
throw new RuntimeException("FIREBASE CRASHLYTICS TEST::" + DateFormat.getDateTimeInstance().format(new Date()));
and it worked for me.

Crashes in Android native code are uploaded but not reported on website

I updated to the latest Crashlytics libs and it seems the crashes are not reported on the website.
Bellow is my logcat when starting the app, I cause a native crash then restart the application. Log shows like the report was uploaded but I can't see it anywhere.
libcrashlytics: Initializing libcrashlytics version 2.0.0
libcrashlytics: Initializing native crash handling successful.
CrashlyticsCore: Initializing Crashlytics 2.5.0.20
CrashlyticsCore: No minidump data found in directory /data/user/0/.../files/.Fabric/com.crashlytics.sdk.android.crashlytics-ndk/native/1515762319997
-----> I cause native crash here
libcrashlytics: Initializing libcrashlytics version 2.0.0
libcrashlytics: Initializing native crash handling successful.
CrashlyticsCore: Initializing Crashlytics 2.5.0.20
cr_CrashFileManager: /data/user/0/.../cache/WebView/Crash Reports does not exist or is not a directory
CrashlyticsCore: Crashlytics report upload complete: 5A58B63A034F-0001-0EA0-1EF6E7C2180A
Initially I tried a older version and had some success with it but after upgrading to the latest then going back to the older version that stopped working too. The old version no longer shows a "upload complete" message.
Can you please help, I trying to get this working for 2 days...
Thank you for any help.
I had the same problem, and after searching for a few hours, I solved it by updating my "google-services.json" file that was not the latest version

No Value for WL-Authentication-Error Exception

When using the WLResourceRequest API ,Launching Native Android
application will result in the following exception:
WLRequest.java:729 :: No value for WL-Authentication-Failure
org.json.JSONException: No value for
WL-Authentication-Failure
at org.json.JSONObject.get(JSONObject.java:389)
The application will run normally and the exception only appears
in the log
Worklight Versions Affected:7.0. In ibm support portal, it says its a cosmetic issue and apply the fix for error in the log to go away.
I am not sure what is the "fix for error in the log to go away". I have the latest fix pack of 7.0 in my server version: 7.0.0.00.20150729-1801.
http://www-01.ibm.com/support/docview.wss?crawler=1&uid=swg1PI46002
You do not have the latest iFix according to the document you have linked to.
It was submitted on August 2nd, but your build is from July 20th.
Find an iFix in IBM Fix Central that is newer than your build. If it's not there, mention this in the comments.

Categories

Resources