A Alex_197 Well-Known Member Licensed User Longtime User Jun 15, 2021 #1 Hi all. Is there some kind of equivalent to Application.VersionName in B4i? I'm working on the option that will check the app version stored on the server database and compare with the currently installed app version and if it's different redirect the user to the App store so he can update his app. Thanks.
Hi all. Is there some kind of equivalent to Application.VersionName in B4i? I'm working on the option that will check the app version stored on the server database and compare with the currently installed app version and if it's different redirect the user to the App store so he can update his app. Thanks.
A Alex_197 Well-Known Member Licensed User Longtime User Jun 15, 2021 #2 https://www.b4x.com/android/forum/t...el-and-version-at-runtime.102692/#post-644201 B4X: Copy Sub AppVersion As String Dim no As NativeObject no = no.Initialize("NSBundle").RunMethod("mainBundle", Null) Dim version As Object = no.RunMethod("objectForInfoDictionaryKey:", Array("CFBundleShortVersionString")) Return version End Sub Upvote 0
https://www.b4x.com/android/forum/t...el-and-version-at-runtime.102692/#post-644201 B4X: Copy Sub AppVersion As String Dim no As NativeObject no = no.Initialize("NSBundle").RunMethod("mainBundle", Null) Dim version As Object = no.RunMethod("objectForInfoDictionaryKey:", Array("CFBundleShortVersionString")) Return version End Sub