Skip to content Skip to sidebar Skip to footer

Get Play Store App Version In Ionic 2

I want to check app version which i have uploaded on playstore for force update. What should i do ? I tried to hit http request but getting cors issue and it will give result in ht

Solution 1:

Please take a look at this plugin: Ionic Native App Update Plugin

Using this plugin, you're able to check if an update is available for your application. Note: This requires a back-end to store the app version information, and should be updated simultaneously with your APK.

Solution 2:

Using JQuery you can use it in your ionic1 with angularjs projects:

$.get("https://play.google.com/store/apps/details?id=--bundleID--", function(data){
            htmlContentsArray=$('<div/>').html(data).contents();
            htmlContents=htmlContentsArray['prevObject']['0']['childNodes']['141'].outerText;
            if(htmlContents == ''){
                htmlContents=htmlContentsArray['prevObject']['0']['childNodes']['144'].outerText;
            }
            latest_version_array=htmlContents.split('Current Version');
                var latest_version_string=latest_version_array['1'];
                var latest_version=latest_version_string.substr(0,5);
});

Post a Comment for "Get Play Store App Version In Ionic 2"