Pointzi Capacitor Plugin
How to install:
Step 0: Dependencies
Install dependencies for Pointzi plugin.
npm i comdarktalkercordovascreenshotnpm i cordova-plugin-app-versionnpm i cordova-plugin-devicenpm i cordova-plugin-device-namenpm i cordova-plugin-dialogsnpm i cordova-plugin-network-information
Step 1: Install plugin
Install Pointzi in your Cordova project. Run this command in a console.
npm i capacitor-plugin-pointzi
Step 2: Setup assets
You need copy asset files of plugin into your dist folder with following structure "/capacitor-plugin-pointzi/assets/". For example:
You can do that by edit your build configuration file. Assume that you are using angular, so you put this code into assets configuration section inside angular.json:
When you have done, it looks like:
Step 3: Init Pointzi service
Add code into constructor of your root component. For example, assumed you use angular, your root component file is app.component.ts.
;; ;
Note: To get your APPKEY, go to dashboard.pointzi.com, it is name on the Top left. CUID is the name you want to give to your install-id. This name is up to you. For more info visit, Tagging documentation