Netmera Developer Guide
Netmera Docs
  • Netmera Developer Guide
  • Platforms
    • iOS
      • New iOS (Swift)
        • SDK Integration
        • Push Notifications
          • Delegate Methods
          • Widget and In-App Messages
          • Media Push
          • Carousel, Slider and Thumbnail Push
        • Deep Linking
          • Custom Deep Links
        • Sound & Vibration
        • Push Inbox
        • Events
        • Geofence & Location
        • User Attributes & Preferences
        • Advertising ID
        • Changelog
      • Former iOS (Objective-C)
        • SDK Integration
        • Push Notifications
          • Delegate Methods
          • Push Payload Receivers
          • Widget and In-App Messages
          • Customizing In-App Messages
          • Media Push
          • Carousel, Slider and Thumbnail Push
          • Custom Web View Presentation
          • Push Icon
        • Live Activities
        • Deep Linking
          • Custom Deep Links
        • Sound & Vibration
        • Push Inbox
        • Events
        • Geofence & Location
        • User Attributes & Preferences
        • Data Transfer
        • Advertising ID
        • SSL Pinning
        • Changelog
    • Android
      • SDK Integration
        • Huawei Integration
        • Huawei Message Receipt
        • Android Integration FAQs
      • Push Notifications
        • Widget and In-App Messages
        • Push Callbacks
        • Custom Web View Presentation
        • Push Icon
      • Deep Linking
        • Custom Deep Links
      • Sound & Vibration
      • Push Inbox
      • Events
      • Geofence & Location
        • Background Location Permission
      • User & Attributes
      • Data Transfer
      • Advertising ID
      • App Tracking
      • SSL Pinning
      • Changelog
    • Web
      • SDK Setup
        • Self-Hosted SDK Setup
      • Mobile Web Push for iOS
      • Deep Linking
        • Custom Deep Links
      • Events
      • User & Attributes
    • React Native
      • SDK Integration
      • Push Notifications
        • Widget and In-App Messages
        • Push Callbacks
      • Deep Linking
        • Custom Deep Links
      • Sound & Vibration
      • Push Inbox
      • Events
      • Geofence & Location
      • User & Attributes
      • Changelog
    • Flutter
      • SDK Integration
      • Push Notifications
        • Push Notification Permissions
        • Widget and In-App Messages
        • Flutter iOS Media Push
      • Deep Linking
        • Custom Deep Links
      • Sound & Vibration
      • Push Inbox
      • Events
      • Geofence & Location
      • User & Attributes
      • SSL Pinning
      • Changelog
    • Cordova
      • SDK Integration
      • Push Notifications
      • Sound & Vibration
      • Push Inbox
      • Events
      • User & Attributes
    • Unity
      • SDK Integration
      • Sound & Vibration
      • Events
      • User & Attributes
      • Changelog
  • Integrated Modules
    • Optimove
    • Adjust
    • Mixpanel
    • IYS Integration
    • VIA Integration
      • Short URL Consent Requests
      • OTP Consent Requests
        • OTP Confirmation Completion
      • VIA Email Rejection Link Generation
      • ETK Rejection via SMS
  • API Documentation
    • REST API
      • Setup
      • Notifications
      • Events
      • User & Device Management
      • Inbox Feature
      • GDPR
      • Error Responses
  • FAQs
    • Push Notifications FAQs
Powered by GitBook
On this page
  • Step 1: Cordova Installation
  • Step 2: Initialize Netmera Plugin
  • Cordova SDK Integration Complete

Was this helpful?

  1. Platforms
  2. Cordova

SDK Integration

Step 1: Cordova Installation

  1. Open your Terminal and navigate to your Cordova project directory. Run the following command to install the Cordova plugin:

cordova plugin add https://github.com/Netmera/cordova-plugin-netmera.git
  1. In your package.json, add the following dependency for the wrapper:

"@ionic-native/netmera-plugin": "git+https://github.com/Netmera/ionic-wrapper-netmera.git"
  1. Run the following command to install the dependencies:

npm install

Sample package.json snippet:

"dependencies": {
  ...
  "@ionic-native/netmera-plugin": "git+https://github.com/Netmera/ionic-wrapper-netmera.git",
  ...
}
  1. Add the required preferences in your config.xml:

<preference name="NetmeraKey" value="example-key" />
<preference name="NetmeraBaseUrl" value="example-base-url" />
<preference name="FcmKey" value="example-fcm-key" />
<preference name="AppGroupName" value="group.com.example.groupname" />
Command
Purpose
Necessity

NetmeraKey

Netmera SDK API Key on Netmera Panel

Required

FcmKey

Firebase Sender ID on your Firebase project

Required

AppGroupName

Group name on your Apple developer project (for carousel push)

Optional

NetmeraBaseUrl

Base URL on your server (for on premise setup)

Optional

Step 2: Initialize Netmera Plugin

  1. Import the Netmera Plugin in your application:

import { NetmeraPlugin } from '@ionic-native/NetmeraPlugin/ngx';
  1. In your constructor, initialize the plugin:

codeconstructor(private netmera: NetmeraPlugin) {}
  1. Start the Netmera Plugin:

this.netmera.start();

Cordova SDK Integration Complete

Cordova SDK integration has been successfully completed, and your devices are now ready to receive the following types of push notifications sent via the Netmera Dashboard:

  • Standard Push Notifications

  • Interactive Push Notifications

  • Widgets

  • Push Notifications with Deeplinks

PreviousCordovaNextPush Notifications

Last updated 3 months ago

Was this helpful?