README
Mobile App Version
NPM version">
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 find out if the running version is or not the latest so you can prompt a message suggesting an update.
Install
Install with npm:
$ npm install --save mobile-app-version
Usage
For Android:
import { getAndroidVersion } from 'mobile-app-version'
getAndroidVersion('my.app.package').then(version => {
// Returns semantic version as string
// e.g. '0.0.1'
})
For iOS:
import { getIosVersion } from 'mobile-app-version'
getAndroidVersion('id123456789').then(version => {
// Returns semantic version as string
// e.g. '0.0.1'
})
License
Copyright © 2020, Max Gomes. Released under the MIT License.