i am using flutter,android with firebase and i am trying to send a crash on firebase console when a button is pressed using platform channels but somehow my crash aint shwoing on firebase console below given is my code
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.crashlytics.FirebaseCrashlytics;
public class MyActivity extends FlutterActivity {
MethodChannel ft=null;
public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
fa = FirebaseAnalytics.getInstance(this);
ft=new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), CHANNEL);
}
ft.setMethodCallHandler((call, result){
if(call.method.equals("startlogingfcm"))
{
log.d(TAG,"Call received"); //I Am Getting call received in debug logs which shows communication between flutter and native is working perfectally
FirebaseCrashlytics.getInstance().recordException(new Throwable("EXCEPTIoN HERE"));
}
});
}