larryaasen / upgrader

A Flutter package for prompting users to upgrade when there is a newer version of the app in the store.
MIT License
570 stars 279 forks source link

Minimum tag on play store not working. #414

Open aloRanking opened 6 months ago

aloRanking commented 6 months ago

I added the [Minimum supported app version: 1.0.55] to the full description on play store yet it does not enforce update. The [:mav: 1.2.3] one for iOS works fine.

screen shot

upgrader: need to evaluate version I/flutter ( 8383): upgrader: blocked: false I/flutter ( 8383): upgrader: debugDisplayAlways: false I/flutter ( 8383): upgrader: debugDisplayOnce: true I/flutter ( 8383): upgrader: hasAlerted: false I/flutter ( 8383): upgrader: shouldDisplayUpgrade: true I/flutter ( 8383): upgrader: shouldDisplayReleaseNotes: true I/flutter ( 8383): upgrader: current locale: en_US I/flutter ( 8383): upgrader: languageCode: en D/EGL_emulation( 8383): app_time_stats: avg=29.47ms min=6.78ms max=265.14ms count=35 I/flutter ( 8383): upgrader: showTheDialog title: Update App? I/flutter ( 8383): upgrader: showTheDialog message: A new version of Foodelo is available! Version 1.0.55 is now available-you have 1.0.54. I/flutter ( 8383): upgrader: showTheDialog releaseNotes: I/flutter ( 8383): Improved User Experience I/flutter ( 8383):

upgrader: dependency: "direct main" description: name: upgrader sha256: d45483694620883107c2f5ca1dff7cdd4237b16810337a9c9c234203eb79eb5f url: "https://pub.dev" source: hosted version: "10.3.0"

larryaasen commented 5 months ago

@aloRanking Can you share the link to the Play Store for this app so we can see the [Minimum supported app version: 1.0.55] text in the description?

aloRanking commented 5 months ago

here is the link.

https://play.google.com/store/apps/details?id=africa.foodelo.hybrid&pli=1

larryaasen commented 5 months ago

@aloRanking Thanks for the link. I noticed that the log is missing some important details like:

I/flutter ( 4463): upgrader: installedVersion: 1.0.0
I/flutter ( 4463): upgrader: minAppVersion: null
I/flutter ( 4463): upgrader: isUpdateAvailable: true

and details from the start like:

I/flutter ( 4463): upgrader: instantiated
I/flutter ( 4463): upgrader: initialize called
I/flutter ( 4463): upgrader: build UpgradeAlert
I/flutter ( 4463): upgrader: initializing
I/flutter ( 4463): upgrader: operatingSystem: android, version: sdk_gphone_x86_64-userdebug 13 TE1A.220922.029 10205419 dev-keys
I/flutter ( 4463): upgrader: packageInfo packageName: com.moonwink.treasury
I/flutter ( 4463): upgrader: packageInfo appName: upgrader_example
I/flutter ( 4463): upgrader: packageInfo version: 1.0.0
I/flutter ( 4463): upgrader: current locale: en_US
I/flutter ( 4463): upgrader: countryCode: US
I/flutter ( 4463): upgrader: languageCode: en
I/flutter ( 4463): upgrader: lookupById url: https://play.google.com/store/apps/details?id=com.moonwink.treasury&gl=US&hl=en&_cb=1716984298195526
D/EGL_emulation( 4463): app_time_stats: avg=6256.77ms min=6256.77ms max=6256.77ms count=1
I/flutter ( 4463): upgrader: UpgraderPlayStore.minAppVersion: 2.1.0

Can you provide the full upgrader log?

aloRanking commented 5 months ago

hi.. thank you for the response.

I/flutter (26407): upgrader: instantiated I/flutter (26407): upgrader: initialize called I/flutter (26407): upgrader: build UpgradeAlert I/flutter (26407): upgrader: initializing I/flutter (26407): upgrader: operatingSystem: android, version: UP1A.231005.007.A346EXXS5BXA4 I/flutter (26407): upgrader: packageInfo packageName: africa.foodelo.hybrid I/flutter (26407): upgrader: packageInfo appName: Foodelo I/flutter (26407): upgrader: packageInfo version: 1.0.54 I/flutter (26407): upgrader: current locale: en_GB I/flutter (26407): upgrader: countryCode: GB I/flutter (26407): upgrader: languageCode: en upgrader: UpgraderAppcastStore item count: 0 I/flutter (26407): upgrader: UpgraderAppcastStore: version info: appStoreListingURL: null, appStoreVersion: null, installedVersion: 1.0.54, isCriticalUpdate: null, minAppVersion: null, releaseNotes: null I/flutter (26407): upgrader: need to evaluate version I/flutter (26407): upgrader: blocked: false I/flutter (26407): upgrader: debugDisplayAlways: false I/flutter (26407): upgrader: debugDisplayOnce: false I/flutter (26407): upgrader: hasAlerted: false I/flutter (26407): upgrader: installedVersion: 1.0.54

so I figured that the mini app version is not displaying becos of I'm using an Appcast.xml.

" storeController: UpgraderStoreController( onAndroid: () => UpgraderAppcastStore(appcastURL: appCastURL), ),"

so I commented out the above code and I got this

I/flutter (29328): upgrader: operatingSystem: android, version: UP1A.231005.007.A346EXXS5BXA4 I/flutter (29328): upgrader: packageInfo packageName: africa.foodelo.hybrid I/flutter (29328): upgrader: packageInfo appName: Foodelo I/flutter (29328): upgrader: packageInfo version: 1.0.54 I/flutter (29328): upgrader: current locale: en_GB I/flutter (29328): upgrader: countryCode: GB I/flutter (29328): upgrader: languageCode: en I/flutter (29328): upgrader: lookupById url: https://play.google.com/store/apps/details?id=africa.foodelo.hybrid&gl=GB&hl=en&_cb=1716990700537131

I/flutter (29328): upgrader: UpgraderPlayStore.minAppVersion: 1.0.55 I/flutter (29328): upgrader: UpgraderPlayStore: version info: appStoreListingURL: https://play.google.com/store/apps/details?id=africa.foodelo.hybrid&gl=GB&hl=en&_cb=1716990703031662, appStoreVersion: 1.0.58, installedVersion: 1.0.54, isCriticalUpdate: null, minAppVersion: 1.0.55, releaseNotes: minor fix I/flutter (29328): upgrader: need to evaluate version I/flutter (29328): upgrader: blocked: true I/flutter (29328): upgrader: debugDisplayAlways: false I/flutter (29328): upgrader: debugDisplayOnce: false I/flutter (29328): upgrader: hasAlerted: false I/flutter (29328): upgrader: installedVersion: 1.0.54 I/flutter (29328): upgrader: minAppVersion: null I/flutter (29328): upgrader: isUpdateAvailable: true I/flutter (29328): upgrader: shouldDisplayUpgrade: true I/flutter (29328): upgrader: shouldDisplayReleaseNotes: true I/flutter (29328): upgrader: current locale: en_US I/flutter (29328): upgrader: languageCode: en I/gralloc4(29328): @set_metadata: update dataspace from GM (0x00000000 -> 0x08010000) I/flutter (29328): upgrader: showTheDialog title: Update App? I/flutter (29328): upgrader: showTheDialog message: A new version of Foodelo is available! Version 1.0.58 is now available-you have 1.0.54. I/flutter (29328): upgrader: showTheDialog releaseNotes: minor fix.

so the enforcing dialog came up.

aloRanking commented 5 months ago

I have the enforcing dialog showing up now.

but is there a way to enforce through the appcast.xml?