Flutter automatically update application when new version is available

前端 未结 5 1823
轮回少年
轮回少年 2021-02-05 17:14

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.

5条回答
  •  醉酒成梦
    2021-02-05 18:14

    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.

提交回复
热议问题