0

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"));

   }
  });
  }
                                     

1 Answer 1

1

Firebase Analytics expects all Event names in lowercase, with underscores instead of spaces:

i think you are sending invalid event names.

also please check this. debugview

Sign up to request clarification or add additional context in comments.

10 Comments

do i need to initialize app using FirebaseApp.initializeApp(this); in configureFlutterEbgineFunction ?
the issue is tried to replace anaylitcs with crashlytics and used
FirebaseCrashlytics.getInstance().recordException(new Throwable("EXCEPTIoN HERE"));
and the app is not crashing with no logs on console
sorry whats the issue i am not understanding your comments?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.