提交 431d4fc9 编写于 作者: fxy060608's avatar fxy060608

feat(push): createPushMessage

上级 71e3a407
import {
hasOwn
} from 'uni-shared'
import {
invoke,
publish
......@@ -72,11 +69,6 @@ export function offPush (params) {
export function createPushMessage (params, callbackId) {
const setting = getAppAuthorizeSetting()
if (!hasOwn(setting, 'notificationAuthorized')) {
return invoke(callbackId, {
errMsg: 'createPushMessage:fail missing push module'
})
}
if (setting.notificationAuthorized !== 'authorized') {
return invoke(callbackId, {
errMsg: 'createPushMessage:fail ' + setting.notificationAuthorized
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册