Market
Opens an app's page in the market place (Google Play, App Store)
Repo: https://github.com/xmartlabs/cordova-plugin-market
Installation
- Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-market $ npm install --save @ionic-native/market@4
- Add this plugin to your app's module
Supported platforms
- Android
- iOS
Usage
import { Market } from '@ionic-native/market';
constructor(private market: Market) { }
...
this.market.open('your.package.name');
Instance Members
open(appId)
Opens an app in Google Play / App Store
Param | Type | Details |
---|---|---|
appId |
string
|
Package name |
Returns: Promise<any>
search(keyword)
Platforms:Android
Search apps by keyword
Param | Type | Details |
---|---|---|
keyword |
string
|
Keyword |
Returns: Promise<any>