【问题标题】:Android Interactive NotificationsAndroid 交互式通知
【发布时间】:2017-06-27 02:42:21
【问题描述】:

我想为我的 Android 应用创建交互式通知,就像 iOS 中的应用一样:https://news.dueapp.com/ios-10-notifications-one-step-forward-one-step-back-fe712469184e。我知道android从Jellybean(4.1)推出了交互式通知功能

我的问题是:我可以在交互式通知中定义多少个操作?

提前致谢。

【问题讨论】:

    标签: android android-notifications interactive


    【解决方案1】:

    查看Android notification not showing more than 3 actionshttps://developer.android.com/reference/android/app/Notification.Builder.html

    您不能添加超过 3 个操作,如果您想做类似 iOS 的操作,则必须自己进行通知布局,或者您也可以添加 1 个操作以打开带有选项的对话框。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-22
      • 1970-01-01
      • 2020-12-31
      • 1970-01-01
      • 1970-01-01
      • 2015-07-01
      相关资源
      最近更新 更多