Skip to content

darkterrorooo/jmessage-phonegap-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jmessage-phonegap-plugin

概要

jmessage-phonegap-plugin 是基于极光IM的Cordova 插件。 目前支持 iOS , Android 平台。

jmessage-phonegap-plugin 除了支持IM 功能外,还集成了原 jpush-phonegap-plugin 插件, 支持消息推送功能。

注意:

jmessage-phonegap-plugin 和 jpush-phonegap-plugin 这两插件不能同时安装。 迁移到jmessage-phonegap-plugin 前要先删除jpush-phonegap-plugin 插件。

###功能和特性:

IM

  • 用户注册/登录
  • 会话
  • 会话列表
  • 获取本地会话记录
  • 设置用户基本信息昵称,性别等

Push

  • 发送推送通知
  • 发送推送自定义消息
  • 设置推送标签和别名

###开发环境:

  • cordova 版本 5.0.0 及以上
  • iOS平台:xcode 版本 7.0 及以上
  • Android 平台:Android Studio 1.5 及以上

安装

下载代码后,在本地安装(推荐

cordova plugin add  <jmessage-phonegap-plugin路径>   --variable APP_KEY=<your app key>

或 在线安装

cordova plugin add  https://github.com/jpush/jmessage-phonegap-plugin.git --variable APP_KEY=<your app key>

查看如何获取APP_KEY,点击这里

安装依赖的其他 plugin

  • org.apache.cordova.device
cordova plugin add org.apache.cordova.device

使用示例

示例目录

jmessage-phonegap-plugin/example/

API

API 分为IM(聊天)API 和 Push(消息推送)两部分

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 40.4%
  • CSS 40.4%
  • Objective-C 12.7%
  • Java 3.7%
  • HTML 2.8%