推送关联云服务空间、添加用户协议和隐私政策外部链接、修改活动状态和图片定位显示问题
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
// 初始化推送管理器
|
||||
const uniPush = uniCloud.getPushManager({
|
||||
appId: "__UNI__29C3D60"
|
||||
})
|
||||
exports.main = async (event, context) => {
|
||||
// event接收前端传入的推送参数
|
||||
const res = await uniPush.sendMessage({
|
||||
push_clientid: event.cid, // 客户端设备cid
|
||||
title: "通知标题",
|
||||
content: "通知内容",
|
||||
force_notification: true // 离线厂商推送必填
|
||||
})
|
||||
return res
|
||||
};
|
||||
Reference in New Issue
Block a user