Flutter app screen getting cut with a white patch - android

We are facing a very weird issue with our Flutter Mobile app (Android version only). As displayed in the screenshot, the bottom part is getting cut, and the app loads only in the 3/4th part of the screen only.
This is coming in the released Playstore version only. In debug mode, this never happened on an emulator or real device. Also, this occurrence is very random and irrespective of the device model. If I close the app and re-run it works fine most of the time.
Flutter Version - 2.5.1

I think it's regarding the error.
When we run the app in debug mode the flutter shows a red box for error.
When we release the app with that error then that part is shown with a white box. So I think you are getting some errors on that part.
To check something wrong in release mode connect your real device with a computer/laptop then in your vscode terminal write the following command
flutter logs
then launch your app you will see your app all logs with errors.
If you don't understand post a comment on this answer I will reply.

Related

Xamarin Forms Android - App won't start after changing OS time to earlier date

I encounter a problem where my Xamarin Forms Android app won't start (blank screen) after I change the Android OS date to an earlier date. I only happens when it's not connected through the debugger.
I'm using the latest version of Visual Studio and Xamarin. At the time of this post, I tested with:
Visual Studio 2019 - 16.6.2 (Also happens in 16.5.3)
Xamarin Forms 4.7.0.968 (Also happens in previous 4.X versions)
Phone: Samsung Galaxy S8, Android 9.
Steps to reproduce:
Create the sample Xamarin Forms app using the "Blank Page" template.
Run it through the debugger first (The app works and displays the welcome message).
Close the app.
Set the OS date/time to manual and go back one day.
From the phone itself (without using the debugger), run the app.
After the last step, the app won't start but will instead display a blank screen. No crash. Resetting the time to automatic date when the app is closed, the app will run correctly again. If I do the same procedure but always start the app using the debugger, everything works fine.
Does anybody knows how to resolve this issue?
Edit: Since it doesn't happen while the debugger is attached, I added logs so I can use logcat to know where it reaches. When it hangs, it doesn't even seem to reach the "Oncreate" of my MainActivity class.
I tried your steps and reproduced the issue , it shows white screen on my side and it seems be stuck .
The problem only occurs when i set time to earlier date , it works fine if i set it later date.
I have raised the issue on github : https://github.com/xamarin/Xamarin.Forms/issues/11128 , you could monitor the progress.

Expo's Android app not responding properly to code changes and shaking

I've started developing a react-native app using Expo and running it in my Android phone. Things worked OK at first but then suddenly:
Every time I introduced a syntax error on my code, my phone would not display the compiling errors (they used to appear as white text on a red background) but instead it would show an uninformative error screen with a blue background.
My phone stopped responding to the shake gesture in order to access the dev menu. (I wonder who thought that shaking was a good idea as opposed to a more conventional menu...)
Live recompiling stopped working.
Even when refreshing manually, changes to my code sometimes won't be applied. It looks like the expo app is working with an old, cached version of my code.
Expo is indeed running in production mode. Any pointers?
Since you mentioned your project is running in production mode you must change it to development mode, you can do this by clicking the toggle button on expo-cli's interface.
Alternatively if you're using Expo CLI just press p while your project is running to toggle between modes.
You can read more about Dev/production modes here.

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

"Show Inspector" not showing in ios simulator and "The Map Size Property Not Writable" issue in android react-native

I am getting weird problem while running react-native application.
In IOS I am not able to see Inspector, when i click on the show inspector it changes to hide inspector but the inspector is not shown.
In ANDROID also when i run the app the app loads properly, but when i try to navigate to any other class or screen it gives me following error:
The map size property is not writable.
PLEASE FIX ME: You are changing the map size property which should not be writable and will break in production.
I am using Visual Studio Code for development.
Tried searching a lot from last few days not able to find the solution.
I faced a similar issue. Check if you have turned Developer mode off.
I had turned off developer mode and forgot to turn it on again. Couldn't open inspector in Xcode simulator and my app throwing the same error in android simulator.
Switching on developer mode fixed it for me.
Check for this statement and comment it in case you want to switch off developer mode.
global.__DEV__ = false

IONIC - Why ionic application did not run correctly on device?

I have tested my application using ionic-serve and everything run normally.
But, when i tried it using device, the application will first run the splash screen (which is not run when using ionic serve) and nothing happen, only white screen.
Can somebody please help me with this situation?
I have no idea about what happen.
The white screen issue often occurs on devices and not in the browser when you are injecting something into a module that kicks off your app. Try to figure out which one, and remove it (if it's not being used) or update it.
First thing to do is to check for errors in the log. To see them, type the address chrome://inspect/#devices in chrome, and click on your app. You'll need to make sure your device has usb debugging turned on.

Categories

Resources