sidsud
sidsud

Reputation: 25

Is it programmatically possible to update a windows store apps from within the app?

Is there an API that allows to me to programmatically pull the latest update from the store and refresh the current version that the user is using? If not, is it possible for the current app to programmatically know that there is a new version available?

Any samples/examples would be highly appreciated.

Upvotes: 0

Views: 334

Answers (2)

sidsud
sidsud

Reputation: 25

I ended up using WNS and Azure Notification Hub to send a push notification to the app when it is launched. The notification is in the form of a toast message that essentially states that a new release is available. But if you updated/downloaded the app after xx/xx/xxxx, no updates are necessary.

I know it is a little cludgy but at least the users now know that the version of the app that they are using may be dated. I control the notification through Azure Mobile Service (which is free for up to 10 apps) and can fully modify the actual script.

Upvotes: 0

HDW Production
HDW Production

Reputation: 1402

You can't programmatically install any Store software. But you can programmatically open the Store to let it do the user manually.

That said, there's no official Store API which you could ask about app versions (you might be able to parse the Store's HTML pages, but I recommend against this approach).

What you can do: Put a small XML file on your website which contains the latest app version number. Your app then can read this file and compare this desired version against the running app's version. If the app is outdated, the app can show a message box to the user.

Upvotes: 2

Related Questions