Flutter Application won't install on Xiomi, OnePlus, Vivo and user session is not maintained - flutter

I have recently developed a Flutter application which works totally fine on all iPhone models and tested on Samsung and different android devices. However it gives either one of the following issue on some phones such as OnePlus, Xiomi Redmi etc.
Application won't install with error message "There was a problem in parsing the package"
If by chance the app gets installed on some Xiomi, OnePlus models, my user session which I have maintained through shared preferences does not persist. User is logged out when the app has been closed.
I am using following packages in my application:
list of packages

This error occurs mostly due to Android 12 and incorrect AndroidManifest.xml configuration if the phone i running SDK 31+ insure your app is configured for Android 12 if not try to set android:exported to any , ,, or components that have s declared in the app’s AndroidManifest.xml
Here is a blog on how to fix it

Related

net:: ERR_SPDY_PROTOCOL_ERROR - Flutter webview app on android 6.0 Marshmallow

I created a flutter webview application and successfully tested on many emulator android api versions & a physical device running on Android 11. Lastly when I'm testing on my older android 6.0 device , I got an error message as mentioned below.
The webpage https://testsite.com could not be loaded because
net:: ERR_SPDY_PROTOCOL_ERROR
If this error occurred to anybody / if anyone have solution for this, please help.
I found an article on internet said that this "ERR_SPDY_PROTOCOL_ERROR" can occur due to outdated web browser. So I tried to update the chrome browser on my phone. But it didn't solve my problem.
Finally I made it worked by updating the Android System WebView on google playstore. I think the error earlier happened is because of the very old Android System WebView.

App Launch: The Huawei Lite Simulator supports only Lite projects

When trying to run my test app on a HVD emulator, I get the following error message:
App Launch: The Huawei Lite Simulator supports only Lite projects.
Meanwhile I've realized, that currently one can only use hardware or a remote emulator for such a project. But when trying to set this up, the Harmony OS Virtual Device Manager responds with 404:
Is there anything to do about it?
I haven't tried with DevEco Studio on Windows so far, but with Android Studio on Linux, which appears to be functioning now.
With HMS Toolkit version 1.0.5, it will ask for Huawei ID and then also lists devices in Düsseldorf or Ireland (where the one is a city and the other a country). However, there are currently only EMUI ROM available. It integrates better than before, but without an HarmonyOS 2.0 ROM, it still doesn't provide the expected environment.

Got the "Error launching application on" after flutter run

I am flowing the official tutorial to install flutter and run the default app on my iPhone Device. After I execute the flutter run, the app is installed and launched on my iPhone but the logs show the bellow error. How do I solve it?
Launching lib/main.dart on My iPhone 6 in debug mode...
Automatically signing iOS for device deployment using specified development team
in Xcode project: XXXXXXXXXX
Running Xcode build...
└─Compiling, linking, and signing... 50.2s
Xcode builds done. 90.1s
Installing and launching... 41.1s
Error launching the application on My iPhone 6. <-- Error Here
It happens that there are some process needed to Flutter plugin correctly run on physical devices. I struggled with that and finally found that the processes idevicesyslog and iproxy were being silently blocked by MacOS.
You may have noticed already a message liked this:
or a similar one for idevicesyslog.
Once I went to System Preferences -> Security & Privacy in General tab and allowed this apps, everything works. Note that this screen shows only the last app that you tried to run. So I'd recommend that you run flutter app with preferences opened so you can (hopefully) see the messages appearing and click allow.
MacOS may warn you one more time about the file being downloaded from the internet. Just click open and you're good.
The error do not show again after reboot the iPhone.
Same error -- Running fine through Xcode, when I ran with flutter CLI, the app would open, but the terminal log output would crash with the error as in the post.
I ran flutter update and simultaneously turned iPhone off and back on. After doing that, the below popup appeared (on mac).
I believe after the install finished, I ran the below (which I ran several times before updating flutter and installing the popup):
flutter clean
rm -rf ios/Pods
flutter pub get
cd ios && pod install && cd ..
run the flutter app using flutter run from command line, then the MacBook will ask for permission to open the app and app runs,
(lldb) warning: libobjc.A.dylib is being read from process memory. This indicates that LLDB could not find the on-disk shared cache for this device. This will likely reduce debugging performance.
Error launching application on device-XXXXX.
Building & Replace with a newest version ios-deploy solved problems list aboved. Flutter SDK bundled a pre-built command ios-deploy in __PATH_TO_YOUR_Flutter_SDK_/bin/cache/artifacts/ios-deploy/, just replace it.
Please reference to: Flutter Error launching application on device issue .

Flutter app getting installed on Android TV but not opening, why?

My flutter application is running on an Android TV emulator in Android Studio, but it's not working on an actual Android TV (4.4.4).
minSdk version seems to be 16 in my flutter app. App gets installed in Android TV with no errors or any issues, but when try to open it nothing happens. Any help?
I don't know what else I should provide for more clarification, let me know if anything more needed like my whole code.
My issue resolved by making a release version with certificate added into app. The compiler build app version won't work with actual tv with my experience.
I didn't had a android tv with myself, so needed to goto a shop frequently for checking my app.

ionic app on android with error message "detected problems with API compatibility"

I just walk through the ionic guidance to build an ionic app. After the app deployed on my android device, it always displays an error message "detected problems with API compatibility (visit g.co/dev/appcompat for more information)" as the enclosed screenshot.
I tried to package and deploy the app with Cordova and Capacitor. The same error message displayed. (yes, Capacitor actually based on Cordova).
I just walk through the g.co/dev/appcompat and do some search online. It is caused by Restrictions on non-SDK interfaces of Android 9. The app was created with ionic start template.
Anyone know the solution to dissolve the warning message? Thanks very much~