# cordova-plugin-zalo-login

> This is pcv plugin for Zalo in Cordova!

Latest version **1.1.3** (published 2022-02-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-zalo-login
pnpm add cordova-plugin-zalo-login
yarn add cordova-plugin-zalo-login
bun add cordova-plugin-zalo-login
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2022-02-18 |
| First published | 2021-07-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 25.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Chinh Le |
| Maintainers | chinhle |
| Keywords | ecosystem:cordova, cordova-android, cordova-ios |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-zalo-login
- Repository: https://github.com/chinhle-pa/cordova-plugin-zalo-login
- Homepage: https://github.com/chinhle-pa/cordova-plugin-zalo-login#readme
- Issues: https://github.com/chinhle-pa/cordova-plugin-zalo-login/issues
- npm.io page: https://npm.io/package/cordova-plugin-zalo-login

## 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.3 (latest) — 2022-02-18
- 1.1.2 — 2022-02-18
- 1.1.1 — 2022-02-18
- 1.1.0 — 2022-02-18
- 1.0.8 — 2021-08-09
- 1.0.7 — 2021-08-06
- 1.0.6 — 2021-08-06
- 1.0.4 — 2021-07-27
- 1.0.3 — 2021-07-27
- 1.0.2 — 2021-07-26
- 1.0.0 — 2021-07-26

## README

# cordova-plugin-zalo-login

> Use Zalo SDK in Cordova projects

## Table of contents

- [Release](#release)
- [Installation](#installation)
- [Usage](#usage)
- [Sample repo](#sample-repo)
- [Compatibility](#compatibility)
- [Zalo SDK](#zalo-sdk)
- [API](#api)

## Release (1.1.2)

Update new ZaloSDK which for Zalo login v4.

- iOS: https://developers.zalo.me/docs/sdk/ios-sdk-196

- Android: https://developers.zalo.me/docs/sdk/android-sdk-203

## Installation

See npm package for versions - https://www.npmjs.com/package/cordova-plugin-zalo-login

Make sure you've registered your Zalo app with Zalo and have an `ZALO_APP_ID` [https://developers.zalo.me/app](https://developers.zalo.me/app).

```bash
$ cordova plugin add cordova-plugin-zalo-login --save --variable ZALO_APP_ID="123456789"
```

If you need to change your `ZALO_APP_ID` after installation, it's recommended that you remove and then re-add the plugin as above. Note that changes to the `ZALO_APP_ID` value in your `config.xml` file will *not* be propagated to the individual platform builds.

### Android config.xml
        <edit-config xmlns:android="http://schemas.android.com/apk/res/android" file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
            <application android:name="com.zing.zalo.zalosdk.oauth.ZaloSDKApplication" />
        </edit-config>

## Compatibility

  * Cordova >= 5.0.0
  * cordova-android >= 7.0.0
  * cordova-ios > 5.0.0

## Zalo SDK

## API
### Login

In your `onDeviceReady` event add the following

```js
zaloLoginPlugin.login([], function loginSuccess(data){
    console.log(data)
    },
  function loginError (error) {
    console.error(error)
  }
);
```

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