InAppStore

Cordova InAppStore Plugin
Creative-Licence-Digital1.0.00
platforms: ios
$ cordova plugin add com.cld.cordova.plugin.inappstore

cordova-plugin-inappstore

Plugin for displaying an embedded App Store within the wep app.

Prerequisites: A Cordova/PhoneGap 3.5+ project for iOS.

Index

  1. Description
  2. Installation
  3. Usage
  4. Example

Description

The InApp Store plugin enables to instantiate a store right from your web app.

Installation

To install this plugin, follow the Command-line Interface Guide.

This plugin follows the Cordova 3.0 plugin spec, so it can be installed through the Cordova CLI in your existing Cordova project:

cordova plugin add https://github.com/Creative-Licence-Digital/cordova-plugin-inappstore.git

Usage

Pass the app store id as parameter of the open method.

open: function (appStoreId, success, fail)

Example

  • params
    • appStoreId - the id of the app you want to target on the AppStore
    • success - success callback function
    • failure - error/fail callback function
success = () =>
  console.log "success"

failure = (error) =>
  console.log "error"

window.plugins?.inappstore.open exampleAppStoreId, success, failure