Flutter App Stuck on Launcher Screen Android

Viewed 1015

I am running my flutter app on physical device, but it gets stuck on launcher screen. The run console doesn't show any error except these two lines:

I/flutter ( 5947): Observatory listening on ************************************
D/FlutterLocationService( 5947): Creating service.
D/FlutterLocationService( 5947): Binding to location service.

But when I run on Emulator it runs fine. What can be issue. I have added the permissions for internet access and location as well. Still not working

I dont what to check for this as it is showing no error !!! just getting stuck

Flutter Doctor results:

[√] Flutter (Channel stable, 2.0.6, on Microsoft Windows [Version 10.0.19042.985], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.56.2)
[√] Connected device (3 available)
1 Answers

So this was a problem for not getting the permissions. Now you have to explicity ask for permission in flutter. Just adding in Android Manifest does not work. I use Permission Handler plugin and added this code And the error goes away

Edit: Now that Android 11 update has come, most of devices are being stuck at Native Splash Screen for infinity. This issue is also reported on github as well here

Related