This small library fetches HTML page from Play Store and App Store, parses and returns your app version.
This is useful when in your hybrid app you want to find out if the running version is not the latest so you can prompt a message suggesting an update.
Install with npm:
$ npm install --save mobile-app-version
import { getAndroidVersion } from 'mobile-app-version'
getAndroidVersion('my.app.package').then(version => {
// Returns semantic version as string
// e.g. '0.0.1'
})
import { getIosVersion } from 'mobile-app-version'
getIosVersion('id123456789').then(version => {
// Returns semantic version as string
// e.g. '0.0.1'
})
Copyright © 2020, Max Gomes. Released under the MIT License.