dci797
dci797
  • 发布:2023-12-01 16:21
  • 更新:2023-12-04 13:45
  • 阅读:185

【报Bug】安卓通知消息没有弹窗提醒,只有消息栏显示,ios正常

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 11 企业版

HBuilderX类型: 正式

HBuilderX版本号: 3.98

手机系统: Android

手机系统版本号: Android 14

手机厂商: vivo

手机机型: iqooneo855

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

<template>
<view class="content">
<button @tap="push">发送推送</button>
<button @tap="push2">使用变量</button>
</view>
</template>

<script>
export default {
data() {
return {
title: '我是变量'
}
},
onLoad() {

    },  
    methods: {  
        push() {  
            uni.createPushMessage({  
                title: '测试',  
                cover: false,  
                content: '测试',  
                sound: "system"  
            })  
        },  
        push2() {  
            uni.createPushMessage({  
                title: this.title,  
                cover: false,  
                content: this.title,  
                sound: "system"  
            })  
        }  
    }  
}  

</script>

<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.logo {  
    height: 200rpx;  
    width: 200rpx;  
    margin-top: 200rpx;  
    margin-left: auto;  
    margin-right: auto;  
    margin-bottom: 50rpx;  
}  

.text-area {  
    display: flex;  
    justify-content: center;  
}  

.title {  
    font-size: 36rpx;  
    color: #8f8f94;  
}  

</style>

预期结果:

出现悬浮通知

实际结果:

没有

bug描述:

悬浮通知已开启,但是没有悬浮通知,只有消息栏通知

2023-12-01 16:21 负责人:无 分享
已邀请:
dci797

dci797 (作者)

图片是全部代码

dci797

dci797 (作者)

有人知道吗

要回复问题请先登录注册