vaenow / cordova-plugin-app-update

App updater for Cordova/PhoneGap
MIT License
298 stars 146 forks source link

comparing installed Version with Google Play Store Version #124

Open ramogundogdu opened 5 years ago

ramogundogdu commented 5 years ago

I am using Ionic 3. Is it possible that I compare the installed version with the version from Google Play Store and in the case if the installed version is smaller than the Google Play Store version, so that it will be redirected to the Google Play Store for updating.

Here is my code. The function always expects an .apk file. But I want it to be redirected directly to Google Store.

<update>
   <version>302048</version>
   <name>APK Name</name>
   <url>https://play.google.com/store/apps/details?id=.......?</url>
</update>
updateUrl = 'https://your-remote-api.com/update.xml;
this.appUpdate.checkAppUpdate(updateUrl).then(() => {
   console.log('Update available')
 });
utpaul commented 5 years ago

@ramogundogdu can you got any solution ?

ramogundogdu commented 5 years ago

@utpaul still not.

utpaul commented 5 years ago

@ramogundogdu how to mange your apps update in google play store?

ramogundogdu commented 5 years ago

@utpaul I want to force users to update with this way. Some users reject Play Store updates.