Hi all
Is it legal to get a latest app version by scrapping AppStore tml like this?
Is there any other way to get it?
I'm asking because my app on start checks if the version on iPhone matches to the latest version on the AppStore and if not redirects to the AppStore page for update. Currently my app connects to the office server where we manually update version number after each app update. The problem is that the app might be ready for sale at 3 AM, some iPhones will get the update automatically and users who work at night shift won't be able to continue because their app version will be bigger than the version number on the office server.
Thanks
Thanks.
Is it legal to get a latest app version by scrapping AppStore tml like this?
B4X:
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim wc As New WebClient
Try
Dim str As String, str2 As String
Dim pos As Integer, pos2 As Integer
str = wc.DownloadString(URLToAppStore)
pos = str.IndexOf("l-column small-6 medium-12 whats-new__latest__version")
pos2 = pos + 62
str2 = str.Substring(pos2, 5).Trim
Label3.Text = str2
Catch ex As Exception
Label3.Text = ex.Message
Finally
End Try
End Sub
Is there any other way to get it?
I'm asking because my app on start checks if the version on iPhone matches to the latest version on the AppStore and if not redirects to the AppStore page for update. Currently my app connects to the office server where we manually update version number after each app update. The problem is that the app might be ready for sale at 3 AM, some iPhones will get the update automatically and users who work at night shift won't be able to continue because their app version will be bigger than the version number on the office server.
Thanks
Thanks.