MrShi
2 天以前 eb7a808aaf7dd0a6dd2ff70f9ef3f8ce0b1e31d1
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';
const uniPush = uniCloud.getPushManager({appId:"__UNI__E3BA820"}) //注意这里需要传入你的应用appId,用于指定接收消息的客户端
exports.main = async (event, context) => {
    return await uniPush.sendMessage({
        "push_clientid": "a3a819cfbb0e0ba1af8a4e472eba3b3c",     //填写上一步在uni-app客户端获取到的客户端推送标识push_clientid
        "title": "取件一下",    
        "content": "取件一下通知栏显示的内容",
        "payload": {
            "text":"取件一下体验一下"
        }
    })
};