Skip to content

Commit

Permalink
Update DOC
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLipan committed Dec 20, 2018
1 parent 0903b58 commit 5a8a926
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
cordova plugin add Your_Plugin_Path --variable APP_KEY=your_jpush_appkey
```

- 如果需要同时动态配置 Android 的 JPUSH_CHANNEL 参数(v3.6.0+):

```shell
cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_jpush_appkey --variable CHANNEL=your_channel
```

### 参数

Expand All @@ -56,12 +51,18 @@
--variable APP_KEY=your_jpush_appkey
```

- CHANNEL: 可以不设置,是为了方便开发者统计 APK 分发渠道,默认为 developer-default
- CHANNEL: 可以不设置,v3.6.0+ 版本开始支持(Android Only),方便开发者统计 APK 分发渠道,默认为 developer-default.

```shell
--variable CHANNEL=your_channel
```

- 同时动态配置 APP_KEY 和 CHANNEL 示例

```shell
cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_jpush_appkey --variable CHANNEL=your_channel
```

### Ionic

如果使用了 Ionic,可以再安装 @jiguang-ionic/jpush 包,适配 ionic-native:
Expand Down

0 comments on commit 5a8a926

Please sign in to comment.