During mobile app testing, have you ever encountered a crash or crash of your app?

What do you think caused this to happen? Is it because of your code or the unconfigured Flutter framework or 3rd party libraries? I have seen it before, and found the cause, so I wanted to share my method, because I tried, tested it many times before posting.

The libraries at main.dart have method “listerner”.

Example:

FirebaseMessaging. onMessageOpenedApp. listen ( (RemoteMessage message) 
print( 'A new onMessageOpenedApp event was published! I); 
RemoteNotification? notification = message. notification; 
The value of the local variable 
AndroidNotification? android = message. notification?.android; 
The value of the local vari 
if (notification null && android null && !kIsWeb) { 
showDia log ( 
context: context, 
builder: ( 
return AlertDialog( 
title: Text(notification.title!), 
content: SingleChildScrollView( 
child: Column( 
crossAxisAlignment: CrossAxisAlignment. start, 
children: [T+t(notification.body!)], 
You, 
Uncommitted
Why does my Flutter app crash during running in background?

One thought on “Why does my Flutter app crash during running in background?

  • 16/10/2021 at 4:32 AM
    Permalink

    Hi, this is a comment.
    To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
    Commenter avatars come from Gravatar.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *