# nativescript-jumio

> NativeScript Jumio.

Latest version **1.1.11** (published 2021-11-15) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install nativescript-jumio
pnpm add nativescript-jumio
yarn add nativescript-jumio
bun add nativescript-jumio
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.11 |
| Published | 2021-11-15 |
| First published | 2021-01-20 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=15 |
| Dependencies | 2 |
| Unpacked size | 13.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Matt Czaplinski |
| Maintainers | mattccc |
| Keywords | NativeScript, JavaScript, Android, iOS |

## Links

- npm: https://www.npmjs.com/package/nativescript-jumio
- Repository: https://github.com/MattCCC/nativescript-jumio
- Issues: https://github.com/MattCCC/nativescript-jumio/issues
- npm.io page: https://npm.io/package/nativescript-jumio

## Dependencies (2)

- [ts-node](https://npm.io/package/ts-node.md) ^9.1.1
- [@types/node](https://npm.io/package/@types/node.md) 14.14.22

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.1.11 (latest) — 2021-11-15
- 1.1.10 — 2021-10-05
- 1.1.9 — 2021-09-28
- 1.1.8 — 2021-09-13
- 1.1.7 — 2021-09-13
- 1.1.6 — 2021-09-03
- 1.1.5 — 2021-09-03
- 1.1.4 — 2021-08-26
- 1.1.3 — 2021-08-25
- 1.1.2 — 2021-08-25
- 1.1.0 — 2021-08-12
- 1.0.0 — 2021-01-20

## README

# NativeScript Jumio

[nativescript-jumio](https://github.com/mattCCC/nativescript-jumio)

Jumio Mobile SDK plugin for NativeScript.

This plugin is compatible only with NativeScript 7.1+. Please file an issue or make a PR if you spot any problems or you have any further requests regarding the functionality.

Currently only ID verification is implemented. Please check [Usage](#usage) or demo/ directory for more details.

## Prerequisites / Requirements

Nativescript 7.1+ is required for the plugin to run properly.

## Installation

```javascript
tns plugin add nativescript-jumio

or

npm install nativescript-jumio
```

## Usage

[nativescript-jumio](https://www.npmjs.com/package/nativescript-jumio)

Make sure to include this activity inside the consumer's Android Manifest:

```
<activity
    android:theme="@style/Theme.Netverify"
    android:hardwareAccelerated="true"
    android:name="com.jumio.nv.NetverifyActivity"
    android:configChanges="orientation|screenSize|screenLayout|keyboardHidden" />
```


Ensure that Kotlin version is set to 1.4.30 inside gradle.properties file

kotlinVersion=1.4.30

```javascript
import { Jumio } from 'nativescript-jumio';

try {
    const jumio = new Jumio({
        merchantApiToken: 'YOUR_API_TOKEN',
        merchantApiSecret: 'YOUR_API_SECRET',
        datacenter: 'EU | US | SG',
    });

    jumio.init({
        customerId: 'customerId',
        callbackUrl: 'Custom callback URL',
        preSelectedData: {
            country: 'Alpha2 Country Code',
            documentType: 'passport | identity_card | driver_license | visa',
        },
        cancelWithError: (error) => {
            // User cancelled after error
        },
        finishInitWithError: (error) => {
            // Finished initialization with an error
        },
        finishedScan: (documentData, scanReference) => {
            // Scan is successful
        },
    });
} catch (err) {
    console.log("EXCEPTION", err)
}

```
## API

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| merchantApiToken | string | yes |  | API token |
| merchantApiSecret | string | yes |  | API secret |
| datacenter | string | yes | | Data Center to use
| customerId | string | yes | | Customer ID
| callbackUrl | string | No | | Custom Callback URL
| preSelectedData | Object | No | null | Pre-selected country as alpha2 code and document type
| cancelWithError | funct |  |  | Callback triggered when User cancels. It accepts error object with code and message. |
| finishInitWithError | funct |  |  | Callback triggered when initialization fails. It accepts error object with code and message. |
| finishedScan | funct |  |  | Callback triggered when scan is finished. It contains an extended Document Data with all necessary information about processing results. |

## License

Apache License Version 2.0, January 2004

---
_Source: https://npm.io/package/nativescript-jumio · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
