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

Upgrader package to handle both for Google Play & Huawei AppGallery for App Upgrade #71

Closed
yllew2 opened this issue Nov 20, 2020 · 8 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed How To? This is a how to question need more information Further information is requested

Comments

@yllew2
Copy link

yllew2 commented Nov 20, 2020

I have been using this upgrader to handle my app upgrade for Android and IOS. It is working great.
However, recently, I have uploaded my App to Huawei App Gallery too.
This package seem to have issue to differentiate the Android source to redirect Google PlayStore or Huawei AppGallery for upgrade. My I know if there is a solution for this situation? How the rest manage the app upgrade situation for different android source from Google Play and Huawei AppGallery at the same time.

@larryaasen
Copy link
Owner

If this was possible it would be using the Appcast file. However, I don't think this is possible. Do you know if there is a way to identify what app store the app was installed from?

@larryaasen larryaasen added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed How To? This is a how to question need more information Further information is requested labels Nov 20, 2020
@yllew2
Copy link
Author

yllew2 commented Nov 20, 2020

Thanks for the quick response. I don't think there is a way to identify what App Store from the user device/phone. At the moment, I am using the same flutter build APK and able to load the same APK into both Google Playstore and Huawei AppGallery for user to download. So, in term of code, there is no different. However, when I have new App release upgrade using your upgrader package, it will always route it back to Google play as expected and break the upgrade for those download from Huawei AppGallery. The only way I can think of, is to have a separate build package apk release (with different remote config) for Google Playstore and Huawei AppGallery but this way is very troublesome to maintain.
I wonder if you or others expert here have other way on the best practice to manage app upgrade for android version on both Google Playstore and Huawei AppGallery.

@larryaasen
Copy link
Owner

Somehow, the app needs to identify which app store it was installed from. If the Android SDK cannot provide that, then the AndroidManifest.xml can identify the app store by using a specific package name for each store. In the code, it should load a corresponding Appcast file based on the app store.

@yllew2
Copy link
Author

yllew2 commented Nov 20, 2020

Do you have any example on how the Appcast file work? I would like to understand better.
In the future, I really hope your upgrader package can also handle this scenario for both Google Play and Huawei AppGallery.
Your upgrader package is really a great package.

@larryaasen
Copy link
Owner

Here is an example Appcast file:

<?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>desc</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>

@larryaasen
Copy link
Owner

Closing this due to inactivity.

@GeylanKalafMohe
Copy link

Please include huawei app updates!

@MrShakila
Copy link

You can find the updated Huawei App Gallery support in #451 Pull Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed How To? This is a how to question need more information Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants