mcm-app-version-ionic
Version:
Check that the application version number is enabled.
20 lines (15 loc) • 746 B
Markdown
# MyCodedMind - Control Version Aplication
This package has been created to check and control internally that the application version number is enabled or available.
### How to install
> npm i mcm-app-version
### How to use
```
import initVersionValidator from 'mcm-app-version';
import { App } from "@capacitor/app";
import { AlertController } from "@ionic/angular";
constructor(private alertCrl: AlertController) {}
// Init set headers HTTP REQUEST
initVersionValidator({ platform: 'android', request: httpRequest, env: enviroment, authentication:'token1234' } );
// Show alert with redirection
showRedirectAlert({alertCtrl: this.alertCrl, applicationID: 'com.app.mcm', App, platform: 'android'});
```