I have flutter ontap guesture that works well in simulator but does not work consistently on mobile when installed.
On simulator it works always but on mobile randomly works dont know how to debug.
Related
I use 2 custom fonts on my flutter project, i have registered them on pubspec.yaml. Everything works perfectly on my android emulator and my real android device. But once i start running it on ios simulator, the whole layout went crazy.
I found the solution on here https://stackoverflow.com/a/52603332/12461018 and so i commented all of the custom fonts and the app works fine.
Now the question is how to use those custom fonts so it'll work on ios devices?
I have a FCM setup in my flutter app. Everything works as expected in the iOS world, but I can't get it to work in the android world. I can see the Push-Notification in the notification drawer, but they don't appear like the classic Push-Notification widget in the top bar. What am I doing wrong?
Android Emulators won't work. You need a physical device if you want to test cloud-messaging on Android.
Home screen view on the different phone responding in a different manner. As you can see the attached screenshots, its working fine on all iOS devices but in android it working on pixel but in oppo, the screen turns to grey.
Did you try to use Oppo for debugging? Did the code execute as desired? Is it app-release that is not working or app-debug? And are there any unconventional plugins?
I wonder what could cause this issue?
My app works perfectly on iOS simulator, but when installing the app on a real iOS device, it launches with black screen and gets stuck with that. I tried with following commands:
*Flutter clean
*Flutter upgrade
*Flutter doctor
Doctor shows nothing wrong, all works.
Where should I begin debugging?
AN Ionic application am a working on is having some odd behavior when run in the iOS simulator (Xcode 7.2.1). My login screen when normally run looks like:
When editing the username field however, I see some sort of toolbar popup at the bottom:
Worse then that however is when I go over to the password field:
I thought at first that this may deal with the native WebView, but it only happens in the simulator. Not when run on the actual device or through ionic serve. Any ideas what is going on here? Why this odd behavior?
EDIT
Also, the app launches with the default Cordova splash screen even though I have set a splash with Ionic. Even so, it should be showing the Ionic splash as opposed to the Cordova one.
EDIT #2
Many times, the Cordova status bar fails to work and my status bar is black as opposed to white.
While this looks weird for you in iOS Simulator, and for me in Chrome's device emulator devtool, it's 'desired behaviour' in Ionic.
Ionic is designed with mobile focus in mind, so when emulating a mobile device, they hide elements to simulate the native keyboard.
Ionic wrote a blog post about this, in fact:
Getting the keyboard to play nicely with the web layer was challenging for several reasons. Probably the biggest issue is the variation in behavior across devices and platforms when the keyboard is shown.
In iOS, not only does the web view resize differently when the keyboard shows in versions 6.1, 7.0, and 7.1, but it is affected differently, and sometimes completely oppositely, by including or excluding the viewport meta tag. Throw support for tablets and landscape orientation into the mix and trying to make every scenario on every device work nicely can have you quickly creating three new issues for every one you fix.
The blog post goes on to say they wrote a Keyboard plugin for Cordova, which is supposed to perform keyboard related hiding and element changing as faster and more accurately. You can find that GitHub repo here.