---
agentTools:
  projectIndex: https://docs.nvecta.com/llms.txt
---

# Plugin Installation

# Prerequisites

1. **[NotifyVisitors Account](https://www.notifyvisitors.com/)**
2. For Android : **[FCM integration](https://firebase.google.com/docs/cloud-messaging)**
3. For iOS: Apple Push Notifications Service Auth Key (APNs Auth Key)

## Install NotifyVisitors library

```shell
npm install cordova-plugin-notifyvisitors
```

## Link library to Project

```shell
ionic cordova plugin add cordova-plugin-notifyvisitors --variable NV_LINK_URL=www.your_deep_link_url.com
```

### Example

```shell
ionic cordova plugin add cordova-plugin-notifyvisitors --variable NV_LINK_URL=www.myApp.com
```

> 📘 Note:- If you added the plugin correctly you will see the following in your CLI.

```shell
***********************************************************************
* cordova-plugin-notifyvisitors version:x.x.x  successfully installed *
***********************************************************************
```

## **Import NotifyVisitors package**

Use the following declare statement in each page of your JavaScript code in which you want to access the Notifyvisitors Plugin methods.

```javascript
declare var NotifyVisitors: any;
```