Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-market
$ npm install --save @ionic-native/market@beta
Add this plugin to your app's module
import { Market } from '@ionic-native/market/ngx';
providers: [
NativeStorage,
StatusBar,
SplashScreen,
Market
$ ionic cordova plugin add cordova-plugin-market
$ npm install --save @ionic-native/market@beta
Add this plugin to your app's module
import { Market } from '@ionic-native/market/ngx';
providers: [
NativeStorage,
StatusBar,
SplashScreen,
Market
]
Now in your component:
import { Market } from '@ionic-native/market/ngx';
constructor(private market: Market) { }
...
this.market.open('your.package.name');
No comments:
Post a Comment