You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Wear OS 3.5三星Watch4更新后应用通知无法显示求助

三星Watch4(Wear OS 3.5)系统更新后通知无法显示问题

环境

  • 设备:三星Watch4
  • 系统:Wear OS 3.5(最近完成系统更新)

问题现象

此前正常运行的代码,在系统更新后出现以下通知相关问题:

  • 启动带通知的Foreground Service时,服务能正常运行,但通知完全不可见;
  • 通过BroadcastReceiver实现的每15分钟定时普通通知也无法显示;
  • 上述情况均无任何报错信息。

测试验证

为排查问题,制作了仅含按钮的测试应用,按以下步骤触发通知:

  1. 启动时创建通知渠道;
  2. 点击按钮后弹出Toast提示;
  3. 创建并发送普通通知。

测试代码如下:

class MainActivity : Activity() {

    private lateinit var binding: ActivityMainBinding
    val CHANNEL_ID = "test1234"

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            // Create the NotificationChannel
            val name = getString(R.string.channel_name)
            val descriptionText = getString(R.string.channel_description)
            val importance = NotificationManager.IMPORTANCE_HIGH

            val mChannel = NotificationChannel(CHANNEL_ID, name, importance)
            mChannel.description = descriptionText
            // Register the channel with the system; you can't change the importance
            // or other notification behaviors after this
            val notificationManager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
            notificationManager.createNotificationChannel(mChannel)
        }

        // get reference to button
        val btn_click_me = findViewById<Button>(R.id.btn_click_me)

        // set on-click listener
        btn_click_me.setOnClickListener {
            Toast.makeText(this@MainActivity, "You clicked me.", Toast.LENGTH_SHORT).show()

            var builder = Notification.Builder(this, CHANNEL_ID)
                .setSmallIcon(R.drawable.logo)
                .setContentTitle("Test title")
                .setContentText("Test content")
                .setPriority(Notification.PRIORITY_DEFAULT)

            val notificationManager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager
            notificationManager.notify(1, builder.build())
        }
    }
}

已排查内容

  • 确认通知渠道ID(CHANNEL_ID)在创建和发送时完全一致;
  • 通知ID设置为大于0的数值,也尝试更换过其他ID;
  • 系统更新明确对通知功能做了改动,且无法回退到旧版本。

请问有没有人遇到过相同问题?或者能指出测试代码中的潜在问题?

内容的提问来源于stack exchange,提问作者BalintT86

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.12 20:55:17