Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jgnpm-jverification-cordova-plugin

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jgnpm-jverification-cordova-plugin

jgnpm-JVerification-cordova-plugin

  • 1.3.7
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

JVerification-cordova-plugin

极光认证官方支持的 cordova 插件(Android & iOS)

注意:插件不支持 cordova-android 7.0.0之前版本。

如果需要在cordova-android 7.0.0之前版本集成插件,参照这篇文章

Cordova Android版本与原生版本对应表

Install

  • 通过 cordova plugin 安装:
cordova plugin add jgnpm-jverification-cordova-plugin --variable APP_KEY=极光appKey
  • 或直接通过 url 安装:
cordova plugin add https://github.com/jpush/JVerification-cordova-plugin.git --variable APP_KEY=极光appKey
  • 或下载到本地安装:
cordova plugin add <plugin_local_path> --variable APP_KEY=极光appKey

***说明 ***:

  • android 如果你的应用的targetSdkVersion >=28,设备在Android P 上是默认限制使用http请求的,开发者需要做如下配置:

  • 在res文件夹下创建一个xml文件夹,然后创建一个network_security_config.xml文件,文件内容如下:

        <?xml version="1.0" encoding="utf-8"?>
        <network-security-config>
            <base-config cleartextTrafficPermitted="true">
                <trust-anchors>
                    <certificates src="system" />
                </trust-anchors>
            </base-config>
        </network-security-config>
  • 在AndroidManifest.xml文件下的application标签增加以下属性:
    <application
        ...
        android:networkSecurityConfig="@xml/network_security_config"
        ...
        />

API

可直接参考 Jiguang-JVerification-cordova-plugin.js 文件。

参考资料

Andorid doc

Ios doc

官方文档

Support

License

MIT © JiGuang

Keywords

FAQs

Package last updated on 13 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc