mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-31 22:42:51 +08:00
31 lines
591 B
Markdown
31 lines
591 B
Markdown
|
## JPush PhoneGap Plugin ##
|
|||
|
|
|||
|
### Installation ###
|
|||
|
|
|||
|
1.使用 phonegap 或者 cordova cli 添加插件:
|
|||
|
`cordova plugin add https://github.com/jpush/jpush-phonegap-plugin.git`
|
|||
|
|
|||
|
2.修改www/config.xml文件,添加或者覆盖以下字段
|
|||
|
|
|||
|
###Android 手工安装###
|
|||
|
1.复制src/android/*.java 到cn/jpush/phonega/目录下(即:cn.jpush.phonegap的包下)
|
|||
|
|
|||
|
2.复制src/android/ .so
|
|||
|
|
|||
|
3.复制 .jar
|
|||
|
|
|||
|
4.复制 .xml
|
|||
|
|
|||
|
5.复制 .png
|
|||
|
|
|||
|
6.修改AndroidManifest.xml 在manifest节点下添加以下权限
|
|||
|
|
|||
|
7.修改AndroidManifest.xml 在manifest/application节点下添加SDK相关组件声明
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|