Skip to content

maxgomes92/mobile-app-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mobile App Version

NPM version NPM monthly downloads NPM total downloads

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

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'

getIosVersion('id123456789').then(version => {
  // Returns semantic version as string
  // e.g. '0.0.1'
})

License

Copyright © 2020, Max Gomes. Released under the MIT License.


About

Fetches your app version from Play Store and App Store.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published