Socket
Socket
Sign inDemoInstall

cordova-gizwits-jpush

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-gizwits-jpush

Gizwits JPush tool


Version published
Maintainers
1
Install size
15.8 MB
Created

Readme

Source

Cordova Gizwits JPush

机智云极光推送插件。

插件安装移除

# 安装
cordova plugin add cordova-gizwits-jpush --variable APP_KEY={Your app key} --variable CHANNEL_NAME={Channel name} --variable IS_PRODUCTION={0 or 1} 

## 参数说明:
## APP_KEY: 申请极光推送时获得的APPKey。【必需】
## CHANNEL_NAME: App 分发渠道。【可选】
## IS_PRODUCTION: 0 = 开发环境,1 = 生产环境。【可选】

## 例子
cordova plugin add cordova-gizwits-jpush --variable APP_KEY=15e0bc15bb3f3ed6f6fbb01f

cordova plugin add cordova-gizwits-jpush --variable APP_KEY=15e0bc15bb3f3ed6f6fbb01f --variable CHANNEL_NAME=App\ Store

cordova plugin add cordova-gizwits-jpush --variable APP_KEY=15e0bc15bb3f3ed6f6fbb01f --variable IS_PRODUCTION=1

cordova plugin add cordova-gizwits-jpush --variable APP_KEY=15e0bc15bb3f3ed6f6fbb01f --variable CHANNEL_NAME=App\ Store --variable IS_PRODUCTION=0

# 移除
cordova plugin rm cordova-gizwits-jpush

接口使用说明

若没有具体说明,则接口跟极光官方提供的一样,请参照官方的说明。

  1. 请求通知权限 requestNotificationAuthorizationStatus

    cordova.plugins.gizJPushPlugin.requestNotificationAuthorizationStatus(func() {
    	// 成功
    }, func() {
    	// 失败
    });
    
  2. 设置别名 setAlias

    cordova.plugins.gizJPushPlugin.setAlias(...);
    
  3. 删除别名 deleteAlias

    cordova.plugins.gizJPushPlugin.deleteAlias(...);
    
  4. 获取别名 getAlias

    cordova.plugins.gizJPushPlugin.getAlias(...);
    
  5. 获取极光注册ID getRegistrationID

    cordova.plugins.gizJPushPlugin.getRegistrationID(...);
    

Keywords

FAQs

Last updated on 26 Oct 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc