June 2018
Beginner to intermediate
394 pages
9h 2m
English
We have already understood that Firebase automatically monitors and generates reports in case of any fatal errors or uncaught exceptions. Also, Firebase allows developers to create custom log events to fire when a crash or an error of any means occurs.
Let's create a custom error when the app starts, which will fire an error that we can define and we can see that in the Firebase console with the maximum delay of minutes. In the following code, when the app reaches the onCreate method, it fires a custom error that we have passed:
package com.packt.crashreport;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import com.google.firebase.crash.FirebaseCrash;public class MainActivity extends AppCompatActivity ...
Read now
Unlock full access