Installation and initialization
Before using the AppMetrica Push Cordova plugin, you need to enable and initialize the AppMetrica Cordova plugin version 0.2.0 or later.
Integrating the plugin
Step 1. Add the supported platforms to your project
cordova plugin add yandex-appmetrica-push-plugin-cordovaCopied to clipboard
cordova plugin add https://github.com/yandexmobile/metrica-push-plugin-cordova.gitCopied to clipboard
When you add another supported platform to the project, the plugin automatically downloads the corresponding SDK library.
Step 3. (For Android projects only) Add the following to the