CocoaPods trunk is moving to be read-only. Read more on the blog, there are 11 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | Custom |
| ReleasedLast Release | Nov 2017 |
Maintained by zhouchao.
| Depends on: | |
| WeexPluginLoader | >= 0 |
| WeexSDK | >= 0 |
| GTSDK | >= 0 |
getui-push是一个weex插件,可以通过weexpack快速集成,可以丰富weex功能
支持的WeexSDK版本: >= 0.16.0
weex create weextest
weex platform add ios
weex platform add android
weex plugin add getui-push
initPush(options)初始化个推SDK
options {Object}:初始化个推时设置的参数
appId {string}:appIdappKey {string}:appKeyappSecret {string}:appSecretonRegisterClient(options)获取clientId
callback {function (clientId)}:获取到clientId的回调函数。
clientId {string}:sdk登入成功后返回clientIdonReceivePayloadData(payloadData)SDK接收个推推送的透传消息
callback {function (payloadData)}:获取到clientId的回调函数。
payloadData {json Object}:接收到的透传数据。在app/build.gradle文件中的android.defaultConfig下添加manifestPlaceholders,配置个推相关的应用参数
android {
...
defaultConfig {
...
manifestPlaceholders = [
GETUI_APP_ID : "APP_ID",
GETUI_APP_KEY : "APP_KEY",
GETUI_APP_SECRET : "APP_SECRET"
]
}
}
weex plugin add getui-push
pod 'GetuiPush'
weexpack plugin add getui-push
compile '${groupId}:getuipush:{$version}'
注意:您需要自行指定插件的groupId和version并将构建产物发布到相应的依赖管理仓库内去(例如maven), 您也可以对插件的name进行自定义,默认将使用插件工程的名称作为name