All Projects → a7ul → react-native-appstore-version-checker

a7ul / react-native-appstore-version-checker

Licence: other
[Deprecated] A react native module to fetch the version of latest app from android playstore or apple app store

Programming Languages

javascript
184084 projects - #8 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to react-native-appstore-version-checker

app-screenshot-builder
Play Store and App Store application screenshot builder
Stars: ✭ 26 (-70.45%)
Mutual labels:  appstore, playstore
App Framework
Applications for any device with HTML, CSS and JavaScript - free and open source!
Stars: ✭ 639 (+626.14%)
Mutual labels:  appstore, playstore
Raccoon4
APK Downloader for Google Play
Stars: ✭ 369 (+319.32%)
Mutual labels:  appstore, playstore
Latestversionplugin
LatestVersion Plugin for Xamarin and Windows apps
Stars: ✭ 99 (+12.5%)
Mutual labels:  appstore, playstore
Checknewappversionavailable
It makes a request to Play Store to check if there is a new version of your published app
Stars: ✭ 69 (-21.59%)
Mutual labels:  version, playstore
react-native-app-review
React Native module to request users to leave an app review.
Stars: ✭ 36 (-59.09%)
Mutual labels:  appstore, playstore
React Native Store Review
Rate on App/Play Store directly in your React Native app
Stars: ✭ 437 (+396.59%)
Mutual labels:  appstore, playstore
Fledge
Fledge: A CI/CD tool for Flutter
Stars: ✭ 152 (+72.73%)
Mutual labels:  appstore, playstore
React Native In App Review
The Google Play In-App Review API, App store rating API lets you prompt users to submit Play Store or App store ratings and reviews without the inconvenience of leaving your app or game.
Stars: ✭ 175 (+98.86%)
Mutual labels:  appstore, playstore
ranepa timetable
Custom RANEPA mobile client on Flutter
Stars: ✭ 39 (-55.68%)
Mutual labels:  appstore, playstore
SSAppUpdater
SSAppUpdater is an open-source framework that compares the current version of the app with the store version and returns the essential details of it like app URL, new app version number, new release note, etc. So you can either redirect or notify the user to update their app.
Stars: ✭ 58 (-34.09%)
Mutual labels:  version, appstore
WWDC
🌈 𝐖𝐖𝐃𝐂 𝐒𝐞𝐬𝐬𝐢𝐨𝐧 𝐍𝐨𝐭𝐞𝐬 👩🏻‍💻 ✨
Stars: ✭ 31 (-64.77%)
Mutual labels:  appstore
perfekt
Release, changelog and version your packages with perfe(k)t 👌 ease!
Stars: ✭ 15 (-82.95%)
Mutual labels:  version
python-valid8
Yet another validation lib ;). Provides tools for general-purpose variable validation, function inputs/outputs validation as well as class fields validation. All entry points raise consistent ValidationError including all contextual details, with dynamic inheritance of ValueError/TypeError as appropriate.
Stars: ✭ 24 (-72.73%)
Mutual labels:  check
VersionCompare
Supports compare version in a very simple & comprehensive way.
Stars: ✭ 31 (-64.77%)
Mutual labels:  version
available-versions
Returns a promise with new versions higher than given for a npm module
Stars: ✭ 18 (-79.55%)
Mutual labels:  version
gramatika.app
Website of Gramatika check spelling and typo tools in Bahasa Indonesia
Stars: ✭ 72 (-18.18%)
Mutual labels:  check
findlargedir
find all "blackhole" directories with a huge amount of filesystem entries in a flat structure
Stars: ✭ 15 (-82.95%)
Mutual labels:  check
IndieApps
A platform to showcase your side projects/apps
Stars: ✭ 23 (-73.86%)
Mutual labels:  appstore
cider
Submit your builds to the Apple App Store in seconds
Stars: ✭ 19 (-78.41%)
Mutual labels:  appstore

react-native-appstore-version-checker [Deprecated] npm

https://nodei.co/npm/react-native-appstore-version-checker.png?downloads=true&downloadRank=true&stars=true

A react native module to check an app's version on playstore or ios app store. This module can be used to check if your app has a new version on playstore or apple app store. or you can even check what is the latest version of another app on playstore.

DEPRECATED

This package is now deprecated and will no longer be maintained. Please use https://github.com/kimxogus/react-native-version-check as an alternative.

Getting started

npm install react-native-appstore-version-checker --save

or

yarn add react-native-appstore-version-checker

Automatic installation

react-native link react-native-appstore-version-checker

Manual installation

iOS

Nothing to be done here ( its pure JS for IOS ;) )

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.masteratul.RNAppstoreVersionCheckerPackage; to the imports at the top of the file
  • Add new RNAppstoreVersionCheckerPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
   include ':react-native-appstore-version-checker'
   project(':react-native-appstore-version-checker').projectDir = new File(rootProject.projectDir,     '../node_modules/react-native-appstore-version-checker/android')
  1. Insert the following lines inside the dependencies block in android/app/build.gradle:
   compile project(':react-native-appstore-version-checker')

Usage

import { getAppstoreAppMetadata } from "react-native-appstore-version-checker";

or;

var getAppstoreAppMetadata = require("react-native-appstore-version-checker")
  .getAppstoreAppMetadata;

//On Android u can do
getAppstoreAppMetadata("com.supercell.clashofclans") //put any apps packageId here
  .then(metadata => {
    console.log(
      "clashofclans android app version on playstore",
      metadata.version,
      "published on",
      metadata.currentVersionReleaseDate
    );
  })
  .catch(err => {
    console.log("error occurred", err);
  });

//On IOS u can do
getAppstoreAppMetadata("529479190") //put any apps id here
  .then(appVersion => {
    console.log(
      "clashofclans android app version on appstore",
      metadata.version,
      "published on",
      metadata.currentVersionReleaseDate
    );
  })
  .catch(err => {
    console.log("error occurred", err);
  });

How To find an appid in IOS or packageId in Android

IOS

Finding appid for an ios app

Search for an app on itunes store. Lets take the example of clash of clans.



The area marked on red is the app's appid

ANDROID

Finding packageId for an android app

Search for an app on playstore. Lets take the example of clash of clans.



The area marked on red is the app's packageId

Advanced Options

getAppstoreAppMetadata(identifier, options);

params:

  • identifier is the app package id like com.example.app

  • options contains values which can affect the result obtained from the store

    - `jquerySelectors` [Android] object with metadata property names to dom dom element identifiers (much like jquery selector) for playstore app page. Currently to get the appversion from the page we do load `https://play.google.com/store/apps/details?id=<app package id>` and parse `$('body > [itemprop="softwareVersion"]')` but you can optionally pass in a custom selector if you want. This is useful if dom structure of the app store page changes in the future.
    
    - `typeOfId` [iOS] (default is `id`) It can be either `id` or `bundleId`. If the `typeOfId` is `id` you need to pass `identifier` as appid and if `typeOfId` is `bundleId` you need to pass bundleIdentifier to `identifier`. It is basically, the query parameter for `https://itunes.apple.com/lookup?${typeOfId}=${identifier}`.
    

    Currently to get the ios version number from app store we hit the url https://itunes.apple.com/lookup?id=<app id> by default. or we can also hit https://itunes.apple.com/lookup?bundleId=<app bundle id> if we pass typeOfId as bundleId. When we hit the above said urls we get json with all the info of the app.

    - `country` [iOS] (default is `us`) The two-letter country code for the store you want to search. The search uses the default store front for the specified country.
    
const storeSpecificId =
  Platform.OS === "ios" ? "529479190" : "com.supercell.clashofclans";

getAppstoreAppMetadata(storeSpecificId, {
  jquerySelectors: {
    version: "[itemprop='softwareVersion']"
  },
  typeOfId: "id",
  country: "de"
});
getAppstoreAppVersion(identifier, options);

getAppstoreAppVersion has been maintained with previous versions for backwards compatibility. The only difference is that instead of jquerySelectors, the options objet only takes one selector for the app version and it's called jquerySelector.

Example

const storeSpecificId =
  Platform.OS === "ios" ? "529479190" : "com.supercell.clashofclans";

getAppstoreAppVersion(storeSpecificId, {
  jquerySelector: "[itemprop='softwareVersion']",
  typeOfId: "id",
  country: "de"
});

Quick note: it will get the public version from stores, that is, will not get alfa, beta or internal versions.

Contributors

License

MIT

© Atul R

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].