I want to add a Cordova plugin which is available on GitHub to my IONIC 5+ Capacitor (Angular) project.
Also, I don't know how to install and integrate this plugin, because the official manual says that after the step
npm install https://github.com/DigitalsunrayMedia/cordova-plugin-stepcounter
also
npm install ionic-native/???????
My problem is right here! What should I do with npm install ionic-native/????????
enter? The desired plugin does not exist as an Ionic Native plugin.
Is it sufficient, if I simply execute the following:
npm install https://github.com/DigitalsunrayMedia/cordova-plugin-stepcounter.git
npx cap sync
without the step of npm install ionic-native/????
I would also like to know if I can easily add and use it in Ionic Capacitor or if I have to make changes in a file.
How do I address this plugin in Typescript? Do I have to add anything to module.app?
Is it sufficient if I do it the way Capacitor prescribes:
import { Plugins } from '@capacitor/core';
const { Stepcounter } = Plugins;
I am very grateful for any advice! Thank youu :) Best regards, programmerg