Closed coolboy0961 closed 2 years ago
recordError() takes an instance of Error
or a native NSError
/Exception
. Maybe that's the problem?
Try firebase().crashlytics().recordError(new Error('test'));
and see if that works.
@fpaaske Thank you. I tried it, but no luck.
Working in the demo, which filter(s) are you using on the fb console ?
@triniwiz
I confirmed Crashlytics of firebase web console. I didn't use any filter.
I notised about this log.
Even I write firebase().crashlytics().setCrashlyticsCollectionEnabled(true);
or set it in AndroidManifest.xml
, firebase_crashlytics_enabled
always is false.
Could this be the reason?
After logging the events try closing/reopening the app , that should cause the app the upload the previously logged events. Also I noticed if I set the filters to 60 mins my logs didn't not show , after setting it to 24hrs it managed to show up
@triniwiz You are right. When I restart the app, crashlytics log is sent. Because I always test every pattern by uninstall and install new version of app, I didn't start same app again... Thanks you so much.
@fpaaske Thank you very much too. I found that only the instance of Error type can be sent, string is NG, the instance of CustomError extended Error is NG too.
I called the recordError looks like following way.
I used debug mode to confirm crashlytics event. When I start the app, I can confirm following info, I think the crashlytics init is fine. But just noting happened when I execute recordError.
I tried to send crash event by using
firebase().crashlytics().crash();
. It works.By the way,
firebase().analytics().logEvent(key, parameters);
works fine too.My environment info:
Dependencies