optimize code & update doc

rename some functions name.
format doc & make some instructions more clearer.
This commit is contained in:
Hevin
2016-04-11 15:21:59 +08:00
parent 46b2a5ab1a
commit b515caf1e4
6 changed files with 107 additions and 107 deletions
+7 -4
View File
@@ -118,6 +118,8 @@ iOS:
window.plugins.jPushPlugin.setTags(tags)
window.plugins.jPushPlugin.setAlias(alias)
event - jpush.setTagsWithAlias //三个方法都是触发该回调事件
+ 获取点击通知内容
event - jpush.openNotification
@@ -137,10 +139,11 @@ iOS:
+ 获取自定义消息推送内容
event - jpush.receiveMessage
//推荐使用事件的方式传递,但同时保留了 receiveMessageIniOSCallback 的回调函数,兼容以前的代码
window.plugins.jPushPlugin.receiveMessageIniOSCallback(data)
event - jpush.receiveMessage
+ 页面的统计
window.plugins.jPushPlugin.startLogPageView(pageName)
@@ -156,7 +159,8 @@ iOS:
+ 本地通知
window.plugins.JPushPlugin.addLocalNotificationForIOS(delayTime, content, badge, notificationID, extras)
window.plugins.JPushPlugin.addLocalNotificationForIOS(delayTime, content,
badge, notificationID, extras)
window.plugins.JPushPlugin.deleteLocalNotificationWithIdentifierKeyInIOS()
window.plugins.JPushPlugin.clearAllLocalNotifications()
@@ -231,6 +235,5 @@ iOS:
IsProduction: 是否生产环境(暂未启用)
###更多
[ JPush 官网文档](http://docs.jpush.io/)
[JPush 官网文档](http://docs.jpush.io/)