Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
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
FAQs
getui-push extend for weex
We found that getui-push demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.