ofload / native_updater

Flutter package to embed native in-app updater
MIT License
56 stars 48 forks source link

Dialog not shown when App on Playstore #21

Closed SyedAmmarSohail closed 3 years ago

SyedAmmarSohail commented 3 years ago

I'm very appreciate your work for in app update. But one thing I notice that update dialog not shown when an app is already on play store even the version number and code is different. I used latest native_updater version 0.1.0 Please look into this.

milhomem commented 3 years ago

Hi @SyedAmmarSohail , I'm not quite sure what you mean but this module does not detect new versions on the store automatically. All logic is up to the developer.

You can check your current version with PackageInfo:

 /// Get Current installed version of app    
final PackageInfo info = await PackageInfo.fromPlatform();    
String currentVersion = info.version.trim().replaceAll("[a-zA-Z]|-", "");

If you want something that compares automatically with the stores you should look at something like https://pub.dev/packages/new_version