From 8e23e63b3a6bd2c316df101e3fb8567fd85c0ba9 Mon Sep 17 00:00:00 2001 From: mocheng <3057647414@qq.com> Date: Thu, 4 Sep 2025 11:41:25 +0800 Subject: [PATCH] unipush --- App.vue | 5 +++++ manifest.json | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/App.vue b/App.vue index e44c12a..c3407a1 100644 --- a/App.vue +++ b/App.vue @@ -9,6 +9,11 @@ export default { this.$i18n.locale = this.vuex_locale; this.$u.api.lang({lang: this.vuex_locale}); } + + //只有在基座运行的情况下才能打印看到 + const clientInfo = plus.push.getClientInfo() + console.log(clientInfo) + // 设置底部导航栏角标 // uni.setTabBarBadge({ // index: 0, diff --git a/manifest.json b/manifest.json index 8bff8f2..06aa6ed 100644 --- a/manifest.json +++ b/manifest.json @@ -28,7 +28,8 @@ "modules" : { "Payment" : {}, "Camera" : {}, - "Barcode" : {} + "Barcode" : {}, + "Push" : {} }, "distribute" : { "android" : { @@ -72,6 +73,18 @@ "UniversalLinks" : "" }, "appleiap" : {} + }, + "push" : { + "unipush" : { + "version" : "2", + "offline" : true, + "honor" : {}, + "meizu" : {}, + "mi" : {}, + "vivo" : {}, + "oppo" : {}, + "hms" : {} + } } }, "icons" : {