flutter应用程序将在xiomi,OnePlus,Vivo和用户会话上均不维护
我最近开发了一个颤抖的应用程序,该应用程序在所有iPhone型号上都非常有效,并在三星和不同的Android设备上进行了测试。 之一
- 手机(例如OnePlus,Xiomi Redmi等)上提供了以下问题
- 但是,它在某些 模型,通过共享偏好维护的我的用户会话不会持续存在。关闭应用程序后,用户已记录。
我在应用程序中使用以下包: 包装列表
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此错误主要发生,主要是由于Android 12造成的,并且不正确androidManifest.xml配置,如果手机i运行SDK 31+保证您的应用程序为Android 12配置为Android 12(如果不尝试设置Android:导出到任何已在s上声明的组件)该应用程序的androidManifest.xml
修复它
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