Skip to content

Commit e3da654

Browse files
author
詹强
committed
修改init说明
1 parent c454e23 commit e3da654

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ export default class JPush {
2828

2929
/*
3030
* 初始化推送服务
31+
*
32+
* 请在componentDidMount()调用init,否则会影响通知点击事件的回调
3133
* */
3234
static init() {
3335
if (Platform.OS == "android") {
@@ -528,8 +530,8 @@ export default class JPush {
528530
}
529531

530532
/*
531-
* 动态配置 channel,优先级比 AndroidManifest 里配置的高
532-
* */
533+
* 动态配置 channel,优先级比 AndroidManifest 里配置的高
534+
* */
533535
static setChannel(params) {
534536
if (Platform.OS == "android") {
535537
JPushModule.setChannel(params)

0 commit comments

Comments
 (0)