Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.98 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.98 KB

nxtpush-cordova-plugin

Dependency Status

集成极光推送、华为推送、小米推送的 Cordova 插件。

Usage & Install

安装说明

  • 安装插件时需要填写极光推送对应的 APPKEY,参考 plugin.xml 中 $JIPUSH_APPKEY
  • 安装插件时需要填写小米推送对应的 APPKEY 与 APPID,参考 plugin.xml 中 $MI_PUSH_APPID$MI_PUSH_APPKEY
  • 华为不需要填写相关信息,初次使用时需要上传 HUAWEI TOKEN 至服务端
  • IOS 端推送逻辑使用极光版本
  • 具体支持的功能参见: www/NXTPlugin.js

安装命令

# 本地安装
cordova plugin add Your_Plugin_Path --nofetch --variable JIPUSH_APPKEY=YOUR_JIPUSH_APPKEY --variable MI_PUSH_APPID=YOUR_MI_PUSH_APPID --variable MI_PUSH_APPKEY=
=YOUR_MI_PUSH_APPKEY
# NPM 安装
cordova plugin add nxtpush-cordova-plugin --variable JIPUSH_APPKEY=YOUR_JIPUSH_APPKEY --variable MI_PUSH_APPID=YOUR_MI_PUSH_APPID --variable MI_PUSH_APPKEY=YOUR_MI_PUSH_APPKEY

Example

例子基于 ionic ,当然你也可以不基于 ionic ,参考极光官方例子即可。 可以使用 ionic start myApp tabs安装 ionic 初始模板, 将 www/ 下的代码替换为 example/ 里的代码即可。

FAQ

https://github.com/pengkobe/nxt-cordova-pushplugin/issues

Special Thanks

License

[email protected]