Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Netmera/awesome-cordova-plugin-netmera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📲 Netmera Cordova SDK Integration

This guide explains how to integrate the Netmera Cordova Plugin into your project.


✅ Step 1: Install Cordova Plugin

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

    ionic cordova plugin add cordova-plugin-netmera-v2
  2. In your package.json, add the following dependency for the wrapper:

    "@awesome-cordova-plugins/netmera": "[email protected]:Netmera/awesome-cordova-plugin-netmera.git"
  3. Run the following command to install the dependencies:

    npm install

    Sample package.json snippet:

    "dependencies": {
      ...
      "@awesome-cordova-plugins/netmera": "[email protected]:Netmera/awesome-cordova-plugin-netmera.git",
      ...
    }
  4. Add the required preferences to your config.xml file:

    <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" />
    
    <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
      ...
      <application android:name="com.netmera.cordova.plugin.NetmeraApplication" />
      ...
    </edit-config>

✅ Step 2: Initialize Netmera Plugin

  1. Import the Netmera Plugin in your application:

    import { NetmeraPlugin } from '@awesome-cordova-plugins/netmera/ngx';
  2. In your constructor, initialize the plugin:

    constructor(private netmera: NetmeraPlugin) {}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors