Open dtodt opened 2 years ago
Hello, @dtodt!
I think it is possible to return some additional information in the update availability object, yes. I am going to give a look if I can do this without having to add more dependencies, which would be ideal, as this package purpose is to be as unintrusive as possible.
Thanks for your suggestion!
+1
Any help for this issue is welcome. I've been investigating a possibility for this and this is what I found:
Android | iOS | |
---|---|---|
Installed version | Can be obtained with PackageInfo | Can be obtained (check what package_info_plus does) |
Available version | AppUpdateInfo has [availableVersionCode ](https://developer.android.com/reference/com/google/android/play/core/appupdate/AppUpdateInfo#availableVersionCode()), but it only returns the version code, not the version string. |
Is already available for us, we just have to expose it. |
So, basically what I'm not sure if we can solve properly is Android's available version. I am accepting suggestions about this.
Regarding app store URL, I'm not sure if I would like to include it, it may be too much for the objectives of this package, but I may change my mind.
Hi, I wonder if there is any intention in return some information, that makes easier to use the package.
I was considering implement my in app update with this package, since upgrader is not flexible enough, but then I would need to make some code by hand, that seems duplicated to me.
I don't know if it is possible though.
Thanks in advance.