question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help with Crashlytics

See original GitHub issue

Hello Today I tried the latest version of nativescript-plugin-firebase for the new Crashlytics in my “old” NS 3.4.2 project for Android but wasn’t able to force a crash send report with this code (which I did with old reporting tool):

firebase.sendCrashLog({
      message: "Hey, I was logged!",
      showInConsole: true
    }).then(
        function () {
          console.log('ok crash');
        },
        function (error) {
            console.log(error);
            console.log('nok');
        }
    );

What I see in console:

JS: Make sure firebase-crash is in the plugin's include.gradle
JS: nok

Also tried with…

...
declare const Crashlytics: any;
...
Crashlytics.getInstance().crash();
...

… in main.ts, which throws an Crashlytics is not defined error.

Any ideas?

My package.json: https://gist.github.com/carrbrpoa/fad3b9e9414a28002e157f018b8c9ada

Thanks in advance!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
carrbrpoacommented, Aug 28, 2018

I think it is working now. Did a release build and a true (non forced) fatal exception happened, being logged in Crashlytics.

0reactions
adekunle11commented, Feb 1, 2020

Hello, please this plugin is making app crash when itest it on a real device, it wasn’t like that before. Now my app stops working whenever i run it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase Crashlytics
Firebase Crashlytics is a lightweight, realtime crash reporter that helps you track, prioritize, and fix stability issues that erode your app quality.
Read more >
Crashlytics - FlutterFire
Crashlytics helps you to collect analytics and details about crashes and errors that occur in your app. It does this through three aspects:....
Read more >
Crashlytics - React Native Firebase
Crashlytics helps you to collect analytics and details about crashes and errors that occur in your app. It does this through three aspects:....
Read more >
7 tips for getting the most out of Crashlytics - The Firebase Blog
Crash insights helps you understand your crashes better by giving you more context and clarity on why those crashes occurred. When you see...
Read more >
Boost your Crashlytics reports with custom keys & log messages
Custom keys help you get the specific state of your app leading up to a crash or non-fatal. You can associate arbitrary key/value...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found