Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries regarding usage of this package #423

Open
becjit opened this issue Jul 6, 2024 · 0 comments
Open

Queries regarding usage of this package #423

becjit opened this issue Jul 6, 2024 · 0 comments
Labels

Comments

@becjit
Copy link

becjit commented Jul 6, 2024

First of all, thank you so much for this package. Really appreciate you work! I have few questions regarding how to best use the package:

  1. Do we need edSignature? If yes in what situation?
  2. If I use appcast do I still need to given country code separately in the code? for example my app would be available in multiple countries including us and I store user locations separately. This is my code
final upgrader = Upgrader(
    client: http.Client(),
    // debugDisplayAlways: true,
    countryCode: "get it from user context",
    clientHeaders: {'header1': 'value1'},
    storeController: UpgraderStoreController(
      onAndroid: () => UpgraderAppcastStore(appcastURL: appcastURL),
      oniOS: () => UpgraderAppcastStore(appcastURL: appcastURL),
    ),
  );
  1. What is the equivalent for app store is that itunes url or app store urls:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
    <channel>
        <title>Debt Now App - Appcast</title>
        <item>
            <title>Version 1.15.0</title>
            <description>Minor updates and improvements.</description>
            <pubDate>Sun, 30 Dec 2018 12:00:00 +0000</pubDate>
            <enclosure url="https://play.google.com/store/apps/details?id=com.moonwink.treasury" sparkle:version="1.15.0" sparkle:os="android" />
        </item>
    </channel>
</rss>

should it be

<item>
            <title>Version 1.15.0</title>
            <description>Minor updates and improvements.</description>
            <pubDate>Sun, 30 Dec 2018 12:00:00 +0000</pubDate>
            <enclosure url="https://itunes.apple.com/lookup?bundleId=com.moonwink.treasury"sparkle:version="1.15.0" sparkle:os="iod" />
        </item>

or

<item>
            <title>Version 1.15.0</title>
            <description>Minor updates and improvements.</description>
            <pubDate>Sun, 30 Dec 2018 12:00:00 +0000</pubDate>
            <enclosure url="https://apps.apple.com/us/app/google-maps/id585027354" sparkle:version="1.15.0" sparkle:os="ios" />
        </item>
  1. When should we use enclosure?

  2. What is difference between itunes url vs app store url
    For example: When i see following I am not too sure if I have to add both in the appcast and if yes where

flutter: upgrader: download: https://itunes.apple.com/lookup?bundleId=com.google.Maps&country=US&_cb=1708305624824631
flutter: upgrader: response statusCode: 200
flutter: upgrader: UpgraderAppStore: version info: appStoreListingURL: https://apps.apple.com/us/app/google-maps/id585027354?uo=4, appStoreVersion: 6.102.3, installedVersion: 1.0.0, isCriticalUpdate: null, minAppVersion: null, releaseNotes: Thanks for using Google Maps! This release brings bug fixes that improve our product to help you discover new places and navigate to them.

  1. When to use appstore/play store to download the latest version vs self hosted. What are the gotchas we should be aware of?
  2. What if my minapp versions are different for ios and android for this config?
Upgrader(
       client: http.Client(),
       countryCode: isoCode,
   minAppVersion: "What should go here?"
   storeController: UpgraderStoreController(
         onAndroid: () => UpgraderAppcastStore(appcastURL: appcastURL),
         oniOS: () => UpgraderAppStore(),
       ),
     );

I went through the doc and able to make the package work, but I did not get a good answer for the questions above to have the right update strategy for my app

Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants