Compare commits

..

8 Commits

Author SHA1 Message Date
E.B
a82382eddf iOS - update
1.更新 iOS SDK v2.1.7
2.IDFA 默认关闭
2016-05-27 10:04:57 +08:00
Hevin
e898c7933c Merge branch 'master' into dev 2016-05-18 14:19:12 +08:00
Hevin
bce5b4df68 fix warming when add and remove plugin. 2016-05-18 14:19:09 +08:00
Hevin
3810209ca6 Merge pull request #146 from withwind8/master
add dependent plugin cordova-plugin-device
2016-05-13 13:39:04 +08:00
Hevin
39155bf63c Merge branch 'dev' 2016-05-13 13:38:27 +08:00
Hevin
93989a7ad1 update README 2016-05-13 13:37:00 +08:00
Li Qing
8c6044b6a6 add dependent plugin cordova-plugin-device 2016-05-13 11:53:12 +08:00
Hevin
9c0c2c0bd1 Merge branch 'master' into dev 2016-05-13 11:31:07 +08:00
6 changed files with 12 additions and 12 deletions

View File

@@ -33,9 +33,13 @@
然后再执行 cordova plugin add xxxxx 命令,不然有一些必须要的链接库需要手动添加。
### 安装插件(Android & iOS)
### 集成步骤(Android & iOS)
#### 1.安装 JPush PhoneGap Plugin
#### 1.首先安装 cordova device 插件
cordova plugin add cordova-plugin-device
#### 2.安装 JPush PhoneGap Plugin
安装 JPush PhoneGap Plugin 有两种方法:
方法一:在线安装
@@ -59,19 +63,12 @@
[IOS 手动安装文档地址](/doc/iOS_install.md)
#### 2.安装 cordova device 插件
cordova plugin add cordova-plugin-device
#### 3.在 js 中调用函数,初始化 JPush
//由于 PhoneGap 插件采用了 Lazy load 的特性,所以建议在 js 文件能执行的最开始就添加
window.plugins.jPushPlugin.init();
## Demo
插件中包含示例 Demo。若想参考可以在 $JPUSH_PLUGIN_DIR/example 文件夹内找到并拷贝以下文件:

View File

@@ -26,6 +26,9 @@
"version": ">=3.0"
}
],
"peerDependencies": {
"cordova-plugin-device": ">=1.0.0"
},
"author": "jpush",
"license": "Apache 2.0 License",
"bugs": {

View File

@@ -5,7 +5,7 @@ module.exports = function (context) {
fs = context.requireCordovaModule('fs'),
shell = context.requireCordovaModule('shelljs'),
projectRoot = context.opts.projectRoot,
ConfigParser = context.requireCordovaModule('cordova-lib/src/configparser/ConfigParser'),
ConfigParser = context.requireCordovaModule('cordova-common/src/configparser/ConfigParser'),
config = new ConfigParser(path.join(context.opts.projectRoot, "config.xml")),
packageName = config.android_packageName() || config.packageName();

View File

@@ -9,6 +9,6 @@
<key>IsProduction</key>
<false/>
<key>IsIDFA</key>
<true/>
<false/>
</dict>
</plist>

View File

@@ -9,7 +9,7 @@
* Copyright (c) 2011 ~ 2015 Shenzhen HXHG. All rights reserved.
*/
#define JPUSH_VERSION_NUMBER 2.1.6
#define JPUSH_VERSION_NUMBER 2.1.7
#import <Foundation/Foundation.h>