Splash screen skipped and screens don't load properly - android

I have a flutter app I am developing. When I run the app in debug mode it works really well. However when i export the APK version there's a very weird thing that happens. When I tap on the app to open it, sometimes it loads well with the splash screen and everything displays correctly.
Other times when I tap on the app icon it loads without the splash screen and the whole app is a mess.
The screenshots above, the first image is the result when the splash screen loads (hence giving time for resources to be loaded). The second image is when the splash screen is skipped, it still takes the same time to display the app content but then with no resources loaded and no styling.
I have no idea why this happens as it only happens when I export the app as an APK.

Have you tried running the app with
flutter run --release
Or you could run the app (with the exported apk) and run
flutter attach
This will show the app logs while running

Have you build apk release ?
try to build release app by run
flutter build apk --release
If your problem is not solved Share your project file or github link to better understand your problem and solve it for you

Related

With Unity2019 for android build,no splash and BLACK SCREEN error

I am a beginner and finally trying to launch my app built with Unity3d(v 2019.2) to Play store.
I tried to build .abb file and exported Android project to get Google App Singing. And I succeed to register my App signing on Google console web.
Before this process, my app was worked well but I now see the black screen without a splash Unity logo.
After the black screen, I can see the touch event log as xxx0, 1 by logcat when I touched on the screen.
And the other thing I see that is the app is forced termination.
(I wonder I accidently pressed some setting checkboxes without knowing)
Please help.

White screen after Splash on android - ionic 2

currently i'm developing an App with the Framework Ionic2 / Cordova.
The application is ready for the beta test and i uploaded it to the Google Play Store. In the release everything works realy good.
Today i tried to change some stuff in the code and recognized a problem, when i run the application from my pc on my phone.
After the splash screen there is a white screen showing up for about 30s !
Ich checked the device with the debugger and after the app is installed the "Device is ready" fires after 3s. For the whole rest of the 30s nothing is happening. After that the app shows up and everything is working like before.
I have already tried to build the app with --prod --release but it makes no difference.
So my first choice was to reset my project to an older git commit to fix the problem, but now in every! commit the screen is white for about 30s. I can go back like 10 commits and it still there.
I was thinking about an problem with the cordova plugins or something like that and that's why the problem occurs in every version now.
Could that be possible or someone of you has advice for me?
/edit:
Intriguingly when i want to debug the app and run it with
ionic run android --livereload --consolelogs
it shows no error, the white screen after splash is still there, but it only lasts like 5 seconds

Meteor white screen instead of splash screen

I've created a new app with Meteor (1.2.1). If I start it once I get a splash screen. Then I stop my app with
navigator.app.exitApp();
and if I start it again, there is a white screen instead of the splash screen.
The Problem should be reproducible for anyone. Create a new blank meteor app and run it on your android device. If you start it the first time you will see the meteor splash screen and if you close the app (with the back button on your device) and start it a second time you will get a white screen instead.
In older versions of meteor (1.1.0.2) I had no such problem.
Have anyone a solution how I can get the splash screen every single time.
(I've tested it with Samsung S4 Mini and HTC Evo 3d)
I've found a workaround for my problem.
I've added an older release of cordova-plugin-splashscreen to my project. From https://github.com/apache/cordova-plugin-splashscreen/releases
# version 2.0 (current version is 2.1)
meteor add cordova:cordova-plugin-splashscreen#https://github.com/apache/cordova-plugin-splashscreen/tarball/d23ea4e01162a78f692bb246776f2a5b3a1da14b
I run into the same issue, after look at the PhoneGap document, I found it's a default behaviour for phonegap splash screen plugin. You can see it here
"SplashShowOnlyFirstTime" preference is also optional and defaults to true. When set to true splash screen will only appear on application launch. However, if you plan to use navigator.app.exitApp() to close application and force splash screen appear on next launch, you should set this property to false (this also applies to closing the App with Back button).
So all you need to do is add this into your mobile-config file
App.setPreference('SplashShowOnlyFirstTime', 'false');

Android APK installation of my new app closes back to the original screen

So,I finally have an app built, but my latest build of it which runs perfectly on the emulator just crashes the apk installation back to the original screen on an actual phone. No errors what so ever. It just closes back to the previous screen.
Turned out to be a problem just downloading it from my webhost. If I copied it over a cable it was fine. And once I got it on the marketplace everything was fine.

Meteor - Android white screen

I have this Meteor app and I want to publish on Google Play but once the app is installed and I open it I get the white screen after the splash page. When I test my app locally with meteor run android-device --mobile-server=... the app loads fine.
It would be hard to post my code since there is a lot of code but what can I do to identify the problem here?
Thanks!

Categories

Resources