Problem with Validate app version

1

Good morning

I am developing an app, only that I am trying to validate the version of the app that is installed with the version that is in the playstore

I'm using this code

newVersion = Jsoup.connect("https://play.google.com/store/apps/details?id=" + package_name + "&hl=en")
                .timeout(30000)
                .userAgent("Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv1.8.1.6) Gecko/20070725 Firefox/2.0.0.6")
                .referrer("http://www.google.com")
                .get()
                .select("div[itemprop=softwareVersion]")
                .first()
                .ownText();

only that it gives me the following error

  

javax.net.ssl.SSLHandshakeException: Handshake failed

    
asked by Hugo Rodriguez 16.06.2017 в 18:44
source

0 answers