Plugin Installation

Prerequisites

  1. NotifyVisitors Account
  2. For Android : FCM integration
  3. For iOS: Apple Push Notifications Service Auth Key (APNs Auth Key)

Install NotifyVisitors library

npm install cordova-plugin-notifyvisitors

Link library to Project

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

// Example
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.
***********************************************************************
* 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.

declare var NotifyVisitors: any;