我想为我的Android应用程序创建交互式通知,例如iOS中的通知:https://news.dueapp.com/ios-10-notifications-one-step-forward-one-step-back-fe712469184e。我知道android从Jellybean(4.1)
启动了交互式通知功能我的问题是:我可以在交互式通知中定义多少个操作?
提前致谢。
答案 0 :(得分:2)
结帐Android notification not showing more than 3 actions和https://developer.android.com/reference/android/app/Notification.Builder.html
您不能添加超过3个操作,如果您想要执行类似iOS的操作,则必须执行自己的通知布局,或者还可以添加1个操作以打开包含选项的对话框。