当新版本可用时,Flutter会自动更新应用程序 [英] Flutter automatically update application when new version is available
问题描述
发布新版本而不使用Google Play商店时,如何实现应用程序的自动更新?我正在使用JSON检查版本.
实际上,在2020年6月,Flutter带来了更多的可能性.其中:
1..在应用内进行更新.如果应用程序具有新版本,则显示两种通知.
插件-
Works Android&iOS.插件- https://pub.dev/packages/upgrader
3..使用Firebase应用内消息传递.它使消息和通知形式具有灵活性.-但是还有更多样板代码和工作.+但是您可以在应用增长时将其用于其他消息和通知.
https://firebase.google.com/docs/in-app-messaging
4.自己制作.甚至与Firebase消息传递相比,代码甚至更少.
How can I implement auto-updating of my application when a new version is released without using Google Play Store? I'm using JSON to check the version.
Actually, in June 2020, we have more possibilities with Flutter. Among them:
1. Make updates inside the app. Display two kinds of notifications if the app has the new version.
Plugin - https://pub.dev/packages/in_app_update (works only on Android, iOS doesn't support such functionality)
2. When a newer app version is available in the app store, a simple alert prompt widget or card is displayed.
Works Android & iOS. Plugin - https://pub.dev/packages/upgrader
3. Use Firebase in-app messaging. It gives flexibility in the messages and forms of notifications. - But a lot more boilerplate code and work. + But you can use it for other messages and notifications when your app is growing.
https://firebase.google.com/docs/in-app-messaging
4. Make it by yourself. Maybe even less code then in the case with Firebase messaging.
这篇关于当新版本可用时,Flutter会自动更新应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!