
9 www.epadlink.com
Integration Guide (ePad-vision SDK for Chrome & Firefox)
Once the manifest file creation is completed, the next step is to create the files referenced in the
manifest file:
Background.js JavaScript file which communicates with NMH for capturing signature and
interaction with the ePad-vision device.
content.js – Content script file, gets injected to web pages matching URLs mentioned in
manifest file.
If your implementation of the extension differs from that used in the sample above, you should create
your own files (.js, .htm, etc. as appropriate) that provide the details of the files named in the manifest
file.
7.2 – Extension Installation
Open the Chrome browser, type and navigate to the URL chrome://extensions/ or else go to
Settings->Extensions.
Make sure Developer Mode is selected and then click Load unpacked extension button.
Browse to Extension folder (<SDK location>\Sample\ChromeExtension) where the extension’s
manifest.json file is located and click OK.
Confirm and accept the permissions dialog displayed.
Once the installation is complete, take a note of the ID of the extension. This should be copied
into the NMH manifest file.
7.3 – Native Messaging Host Installation
The first step of the installation is to register the native messaging host on the client/developer desktop.
For registering a native messaging host, the application must install a manifest file that defines the
native messaging host configuration. Below is the default com.topaz.epadvision.win.json, distributed
along with the SDK and it can be used. Some of the parameters of the file will be changed based on the
target machine.
"name": "com.topaz.epadvision.win",
"description": "Chrome ePad-vision SDK Native Messaging Host",
"path":"C:\\ePad-visionSDK\\SDK\\Chrome\\Chrome.ePad-visionSDK\\Chrome.ePad-visionSDK.exe",
"type": "stdio",
"allowed_origins": [
"chrome-extension://mcjlhkcioghfmodbaapbhgagdcgehmfg/"
]
}
Name of the native messaging host. Clients pass this string to the
Chrome NMH connect call and launch the host. Keep it the same as
above.
Short application description. Keep it the same as above.
Path to the native messaging host binary Chrome.ePad-visionSDK.exe.
This should be changed based on location where the SDK is
Comentarios a estos manuales