how to generat or create "appcastURL" for upgrader package in flutter?


I want to show dialog for user when new version of app is available on play store or google play, to do that I used Upgrader package from flutter.
This package use "AppCast" class.
the code is :

import 'package:flutter/material.dart';
import 'package:upgrader/upgrader.dart';
import 'package:store_redirect/store_redirect.dart';

  void main() => runApp(MyApp());

  class MyApp extends StatelessWidget {
    Key key,
  }) : super(key: key);

  Widget build(BuildContext context) {
    // Only call clearSavedSettings() during testing to reset internal values.

     // On Android, setup the Appcast.
    // On iOS, the default behavior will be to use the App Store version of
    // the app, so update the Bundle Identifier in example/ios/Runner with a
    // valid identifier already in the App Store.
    final appcastURL =
    final cfg = AppcastConfiguration(url: appcastURL, supportedOS: ['android']);

    return MaterialApp(
      title: 'Upgrader Example',
      home: Scaffold(
          appBar: AppBar(
            title: Text('Upgrader Example'),
          body: UpgradeAlert(

            appcastConfig: cfg,
            debugLogging: true,
            showIgnore : false,
            showLater : false,
            dialogStyle :UpgradeDialogStyle.cupertino,
            onUpdate :(){
          _ launchURL();
           return true;

         child: Center(child: Text('Checking...')),
  _launchURL() async {
        androidAppId: "intersoft.pos.soft_ta",
        iOSAppId: "284882215");

in the example appcastURL is
how can I get the correct .xml file for my application?

I read documentation of appcast class but I do not understand what I should do.


Create a new file appcast.xml

Paste this in it

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="">
        <title>Help Code TJCODE- Appcast</title>
            <title>Version 1.15.0</title>
            <pubDate>Tue, 08 Jun 2021 12:00:00 +0000</pubDate>
            <enclosure url="" sparkle:version="1.0.0" sparkle:os="android" />

Edit the details in this file to suite your own app config.

Host this file somewhere accessible. You can host it on Github.

Answered By – Codedman

Answer Checked By – Terry (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *