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

PlayStoreResults.redesignedVersion exception: FormatException: Not a properly formatted version string. And also, will it work for updates with VersionCode Changes or do have to update Version Name as well ? #201

Closed
Kishan-Somaiya opened this issue Jul 28, 2022 · 27 comments
Assignees
Labels

Comments

@Kishan-Somaiya
Copy link

Kishan-Somaiya commented Jul 28, 2022

To better assist in analyzing issues, please include all of the upgrader log, which should look something like this:

upgrader: build UpgradeAlert
I/flutter (27502): upgrader: languageCode: en
I/flutter (27502): upgrader: default operatingSystem: android QKQ1.190828.002 test-keys
I/flutter (27502): upgrader: operatingSystem: android
I/flutter (27502): upgrader: platform: TargetPlatform.android
I/flutter (27502): upgrader: isAndroid: true, isIOS: false, isLinux: false, isMacOS: false, isWindows: false, isFuchsia: false, isWeb: false
I/flutter (27502): upgrader: instantiated.
I/flutter (27502): upgrader: build UpgradeAlert
I/flutter (27502): upgrader: languageCode: en
I/flutter (27502): upgrader: default operatingSystem: android QKQ1.190828.002 test-keys
I/flutter (27502): upgrader: operatingSystem: android
I/flutter (27502): upgrader: platform: TargetPlatform.android
I/flutter (27502): upgrader: isAndroid: true, isIOS: false, isLinux: false, isMacOS: false, isWindows: false, isFuchsia: false, isWeb: false
I/flutter (27502): upgrader: package info packageName: com.searchmi.da
I/flutter (27502): upgrader: package info appName: SearchMI
I/flutter (27502): upgrader: package info version: 1.0.0
I/flutter (27502): upgrader: countryCode: IN
I/flutter (27502): upgrader: package info packageName: com.searchmi.da
I/flutter (27502): upgrader: package info appName: SearchMI
I/flutter (27502): upgrader: package info version: 1.0.0
I/flutter (27502): upgrader: countryCode: IN
I/flutter (27502): upgrader: instantiated.
I/flutter (27502): upgrader: build UpgradeAlert
I/flutter (27502): upgrader: languageCode: en
I/flutter (27502): upgrader: default operatingSystem: android QKQ1.190828.002 test-keys
I/flutter (27502): upgrader: operatingSystem: android
I/flutter (27502): upgrader: platform: TargetPlatform.android
I/flutter (27502): upgrader: isAndroid: true, isIOS: false, isLinux: false, isMacOS: false, isWindows: false, isFuchsia: false, isWeb: false
I/flutter (27502): upgrader: package info packageName: com.searchmi.da
I/flutter (27502): upgrader: package info appName: SearchMI
I/flutter (27502): upgrader: package info version: 1.0.0
I/flutter (27502): upgrader: countryCode: IN
I/flutter (27502): upgrader: instantiated.
I/flutter (27502): upgrader: build UpgradeAlert
I/flutter (27502): upgrader: languageCode: en
I/flutter (27502): upgrader: default operatingSystem: android QKQ1.190828.002 test-keys
I/flutter (27502): upgrader: operatingSystem: android
I/flutter (27502): upgrader: platform: TargetPlatform.android
I/flutter (27502): upgrader: isAndroid: true, isIOS: false, isLinux: false, isMacOS: false, isWindows: false, isFuchsia: false, isWeb: false
I/flutter (27502): upgrader: package info packageName: com.searchmi.da
I/flutter (27502): upgrader: package info appName: SearchMI
I/flutter (27502): upgrader: package info version: 1.0.0
I/flutter (27502): upgrader: countryCode: IN
I/flutter (27502): upgrader: PlayStoreResults.redesignedVersion exception: FormatException: Not a properly formatted version string
I/flutter (27502): upgrader: PlayStoreResults.redesignedVersion exception: FormatException: Not a properly formatted version string
I/flutter (27502): upgrader: PlayStoreResults.redesignedVersion exception: FormatException: Not a properly formatted version string
I/flutter (27502): upgrader: blocked: false
I/flutter (27502): upgrader: debugDisplayAlways: true
I/flutter (27502): upgrader: debugDisplayOnce: false
I/flutter (27502): upgrader: hasAlerted: false
I/flutter (27502): upgrader: shouldDisplayUpgrade: true
I/flutter (27502): upgrader: shouldDisplayReleaseNotes: true
I/flutter (27502): upgrader: showDialog title: Update App?
I/flutter (27502): upgrader: showDialog message: A new version of SearchMI is available! Version  is now available-you have 1.0.0.
I/flutter (27502): upgrader: showDialog releaseNotes: Get the best business out of your area !
I/flutter (27502): upgrader: PlayStoreResults.redesignedVersion exception: FormatException: Not a properly formatted version string

Also, please include the upgrader version number from the pubspec.lock file, which should look something like this:

   upgrader:
    dependency: "direct main"
    description:
      name: upgrader
      url: "https://pub.dartlang.org"
    source: hosted
    version: "4.4.2"

--> Also Latest Version From Play Store is Missing. My App is in Internal Testing but it is Available on Play Store

image

@larryaasen
Copy link
Owner

I see that Upgrader is instantiated more than once which is not a good idea. Can you post the code here where you use Upgrader()?
Also, I see that the Play Store results were not found. I ran this in a terminal window:

$ dart bin/playstore_lookup.dart id=com.searchmi.da
upgrader: Can't find an app in the Play Store with the id: com.searchmi.da

Is you app published on the Play Store?

@larryaasen larryaasen added How To? This is a how to question Android labels Jul 28, 2022
@Kishan-Somaiya
Copy link
Author

Yes it's available on Play Store but it's only available in my Country for now. @larryaasen Is that an issue ?

image

@larryaasen
Copy link
Owner

@Kishan-Somaiya It looks like we don't support other countries with the Android Play Store. We do support all countries on iOS.

Can you share a link to your app in the Play Store?

@Kishan-Somaiya
Copy link
Author

Thanks for your reply @larryaasen. Does that mean this package won't work for me ? Here's the link

@larryaasen
Copy link
Owner

@Kishan-Somaiya What is the country code?

@larryaasen larryaasen added the need more information Further information is requested label Aug 1, 2022
@larryaasen
Copy link
Owner

@larryaasen larryaasen added enhancement New feature or request help wanted Extra attention is needed and removed How To? This is a how to question labels Aug 1, 2022
@Kishan-Somaiya
Copy link
Author

Yes it's IN and +91. So will this work or not ? 😅 @larryaasen

@Kishan-Somaiya
Copy link
Author

Kishan-Somaiya commented Aug 4, 2022

Hey @larryaasen can you confirm if Upgrader will work or Do I have to look for another alternatives ?

And to test it in release env, I've to upload it to Play store right ? My app is uploaded to Play Store and it's in Early Beta Access.

@larryaasen
Copy link
Owner

I am looking at this issue now, but I don't have a fix yet.

@Kishan-Somaiya
Copy link
Author

Okay, waiting for a fix and thanks for all your support @larryaasen, appreciated.

@Kishan-Somaiya
Copy link
Author

Hey @larryaasen did you find a solution ? I was thinking if we can use the supplied Country code ? Like in this example https://play.google.com/store/apps/details?id=com.searchmi.da&gl=IN, we pass IN and then it use that in URL, default being US. Will this work ?

@larryaasen
Copy link
Owner

I have a solution and I am testing now and for the next few days.

@larryaasen larryaasen self-assigned this Aug 11, 2022
@larryaasen larryaasen removed help wanted Extra attention is needed need more information Further information is requested labels Aug 11, 2022
@Kishan-Somaiya
Copy link
Author

Thanks for the update @larryaasen, looking forward to it and much appreciated.

@larryaasen
Copy link
Owner

Released version 4.6.0 of [upgrader] package. Updated Play Store API request to include the country code. @Kishan-Somaiya Please check it out.

@Kishan-Somaiya
Copy link
Author

Thanks @larryaasen will test this and let you know in few days, much appreciated.

@Kishan-Somaiya
Copy link
Author

Kishan-Somaiya commented Aug 16, 2022

Hi @larryaasen I'm still getting the exception in the logs of the debug build : upgrader: PlayStoreResults.redesignedVersion exception: FormatException: Not a properly formatted version string, will this work in the Play store version of the app ?

@larryaasen
Copy link
Owner

@Kishan-Somaiya Thanks for the report. Can you include the entire upgrader log? See the README for instructions.

@Kishan-Somaiya
Copy link
Author

Kishan-Somaiya commented Aug 17, 2022

I/flutter ( 4544): upgrader: instantiated.
I/flutter ( 4544): upgrader: build UpgradeAlert
I/flutter ( 4544): upgrader: languageCode: en
I/flutter ( 4544): upgrader: default operatingSystem: android QKQ1.190828.002 test-keys
I/flutter ( 4544): upgrader: operatingSystem: android
I/flutter ( 4544): upgrader: platform: TargetPlatform.android
I/flutter ( 4544): upgrader: isAndroid: true, isIOS: false, isLinux: false, isMacOS: false, isWindows: false, isFuchsia: false, isWeb: false
I/flutter ( 4544): upgrader: package info packageName: com.searchmi.da
I/flutter ( 4544): upgrader: package info appName: SearchMI
I/flutter ( 4544): upgrader: package info version: 1.0.0
I/flutter ( 4544): upgrader: countryCode: IN
I/flutter ( 4544): upgrader: instantiated.
I/flutter ( 4544): Returning Intro Screen
I/flutter ( 4544): upgrader: build UpgradeAlert
I/flutter ( 4544): upgrader: languageCode: en
I/flutter ( 4544): upgrader: default operatingSystem: android QKQ1.190828.002 test-keys
I/flutter ( 4544): upgrader: operatingSystem: android
I/flutter ( 4544): upgrader: platform: TargetPlatform.android
I/flutter ( 4544): upgrader: isAndroid: true, isIOS: false, isLinux: false, isMacOS: false, isWindows: false, isFuchsia: false, isWeb: false
I/flutter ( 4544): upgrader: package info packageName: com.searchmi.da
I/flutter ( 4544): upgrader: package info appName: SearchMI
I/flutter ( 4544): upgrader: package info version: 1.0.0
I/flutter ( 4544): upgrader: countryCode: IN
I/flutter ( 4544): upgrader: instantiated.
I/flutter ( 4544): upgrader: build UpgradeAlert
I/flutter ( 4544): upgrader: languageCode: en
I/flutter ( 4544): upgrader: default operatingSystem: android QKQ1.190828.002 test-keys
I/flutter ( 4544): upgrader: operatingSystem: android
I/flutter ( 4544): upgrader: platform: TargetPlatform.android
I/flutter ( 4544): upgrader: isAndroid: true, isIOS: false, isLinux: false, isMacOS: false, isWindows: false, isFuchsia: false, isWeb: false
I/flutter ( 4544): upgrader: package info packageName: com.searchmi.da
I/flutter ( 4544): upgrader: package info appName: SearchMI
I/flutter ( 4544): upgrader: package info version: 1.0.0
I/flutter ( 4544): upgrader: countryCode: IN
I/flutter ( 4544): upgrader: PlayStoreResults.redesignedVersion exception: FormatException: Not a properly formatted version string
I/flutter ( 4544): upgrader: PlayStoreResults.redesignedVersion exception: FormatException: Not a properly formatted version string
I/flutter ( 4544): upgrader: PlayStoreResults.redesignedVersion exception: FormatException: Not a properly formatted version string
I/flutter ( 4544): upgrader: blocked: false
I/flutter ( 4544): upgrader: debugDisplayAlways: true
I/flutter ( 4544): upgrader: debugDisplayOnce: false
I/flutter ( 4544): upgrader: hasAlerted: false
I/flutter ( 4544): upgrader: shouldDisplayUpgrade: true
I/flutter ( 4544): upgrader: shouldDisplayReleaseNotes: true
I/flutter ( 4544): upgrader: showDialog title: Update App?
I/flutter ( 4544): upgrader: showDialog message: A new version of SearchMI is available! Version  is now available-you have 1.0.0.
I/flutter ( 4544): upgrader: showDialog releaseNotes: Get the best business out of your area !

@larryaasen Do let me know if you need anything and will 4.6.0 work and will show update dialog ? I've pushed it to the play store and do Upgrader work for updates with VersionCode Changes or do have to update Version Name as well ? I've noticed upgrader is instantiated multiple times is it okay or it won't work because of it ?

@Kishan-Somaiya
Copy link
Author

Hi @larryaasen when I use the command terminal app and passing country="IN" I get the following results :

upgrader: PlayStoreResults.redesignedVersion exception: FormatException: Not a properly formatted version string
playstore_lookup description: Searchmi is a India's trusted digital marketing platform that links business vendors and target people.Searchmi is India's first of this kind of digital platform where all kinds of
business have the opportunity to grow and increase customer reachSearchmi has experienced and expert team that is dedicated to help in effective marketing of small, medium and bigger businessOur mission and visi
onOur mission is to provide cheapest, smarter and effective way of marketing to every businessmenOur vision is to create a unique path of marketing through the digital platform and remove all limitations
playstore_lookup minAppVersion: null
playstore_lookup releaseNotes: Get the best business out of your area !
playstore_lookup version: null
playstore_lookup all results:
#document

Here's the app info that's available on Play Store :

image

@larryaasen
Copy link
Owner

Looking at the Play Store for this app, https://play.google.com/store/apps/details?id=com.searchmi.da&gl=IN, and looking at the About this app section, there is no app version listed. Looking at the screenshot below, there is no Version listed, so upgrader cannot determine the Play Store version of the app.
Screen Shot 2022-08-17 at 9 51 11 AM

@Kishan-Somaiya
Copy link
Author

Kishan-Somaiya commented Aug 17, 2022

Hi @larryaasen thanks for your reply, actually you can see in my above comment, version is showing in play store app, but it's not showing in web. Do you know why it's not showing in web or do you know any way to fix it ?

@larryaasen
Copy link
Owner

I don't know why that happens. Do you have more than one version of the app active or available at the same time?

@Kishan-Somaiya
Copy link
Author

Actually we had beta channel earlier in which we were uploading the app but it wasn't available to general public, it was only available to internal testers which were registered in the play console, can that be an issue ?

@larryaasen
Copy link
Owner

I don't know if that would cause the issue. Can regular users download the app from the Play Store?

@Kishan-Somaiya
Copy link
Author

Yes they can now

@Kishan-Somaiya
Copy link
Author

Kishan-Somaiya commented Aug 18, 2022

Our app is still in early access as you can see in below image :

image

Could this be an issue ? Users can search and download it. I've checked my other app which is also in early access in play store, version is also not available there. Looking on the other apps which are not in early access, we get the version in all of them. Do you have nay solution for this ? thoughts ? @larryaasen

@larryaasen
Copy link
Owner

Unfortunately, the only way for the upgrader package to determine the latest published release of the app, is to use this URL: https://play.google.com/store/apps/details?id=com.searchmi.da&gl=IN
The version must be on that page for this to work.

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