@@ -34,6 +34,8 @@ export default class JPush {
3434 static init ( ) {
3535 if ( Platform . OS == "android" ) {
3636 JPushModule . init ( )
37+ } else {
38+ JPushModule . loadJS ( )
3739 }
3840 }
3941
@@ -324,7 +326,7 @@ export default class JPush {
324326 /*
325327 * 通知事件
326328 *
327- * @param {Fucntion } callback = (result) => {"messageID":int ,"title":int ,"content":StringArray ,"extras":{String:String}} ,"notificationType ":String }
329+ * @param {Fucntion } callback = (result) => {"messageID":String ,"title":String ,"content":String ,"extras":{String:String},"notificationEventType ":String}
328330 *
329331 * messageID:唯一标识通知消息的 ID
330332 *
@@ -334,11 +336,9 @@ export default class JPush {
334336 *
335337 * extras:对应 Portal 推送消息界面上的“可选设置”里的附加字段
336338 *
337- * notificationType :分为notificationArrived和notificationOpened两种
339+ * notificationEventType :分为notificationArrived和notificationOpened两种
338340 *
339- * 注意:1.应用在存活状态下点击通知不会有跳转行为,应用在被杀死状态下点击通知会启动应用
340- * 2.请在JS的componentDidMount()中调用JPush.init()保证消息点击事件到达率
341- * 3.请在Android的Application onCreate()中调用JPushModule.registerActivityLifecycle(this)保证应用后台点击通知能切到前台
341+ * 注意:应用在存活状态下点击通知不会有跳转行为,应用在被杀死状态下点击通知会启动应用
342342 *
343343 * */
344344 static addNotificationListener ( callback ) {
@@ -351,7 +351,7 @@ export default class JPush {
351351 /*
352352 * 自定义消息事件
353353 *
354- * @param {Fucntion } callback = (result) => {"messageID":int ,"content":StringArray ,"extras":{String:String}}}
354+ * @param {Fucntion } callback = (result) => {"messageID":String ,"content":String ,"extras":{String:String}}}
355355 *
356356 * messageID:唯一标识自定义消息的 ID
357357 *
@@ -378,7 +378,7 @@ export default class JPush {
378378 /*
379379 * tag alias事件
380380 *
381- * @param {Fucntion } callback = (result) => {"code":int,"sequence":int,"tags":StringArray ,"tag":String,"tagEnable":boolean,"alias":String}
381+ * @param {Fucntion } callback = (result) => {"code":int,"sequence":int,"tags":String ,"tag":String,"tagEnable":boolean,"alias":String}
382382 *
383383 * code:结果,0为操作成功
384384 *
0 commit comments