当用户在后台点击通知时,我正在尝试打开特定活动.从Docs中,我已经知道必须在有效负载中添加click_action,并在App中使用intent过滤来处理它.但是,如何通过Firebase控制台在Firebase通知中添加click_action?我也对任何其他工作开放.提前致谢.
android android-notifications firebase-cloud-messaging firebase-notifications
我实施了Firebase并测试了Firebase通知.当应用程序在前台我没有问题时,我实现了一个扩展FirebaseMessagingService并处理onMessageReceived中的消息和数据的服务
当应用程序处于后台时,我遇到问题,我想发送一个通知,打开一个特定的活动并完成我计划做的事情,而不仅仅是打开应用程序.
我按照Firebase指南中的说明执行了操作,但我无法启动特定活动.
这里的清单:
<activity android:name=".BasicNotificationActivity">
<intent-filter>
<action android:name="OPEN_ACTIVITY_1" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Run Code Online (Sandbox Code Playgroud)
这里是Firebase控制台.我必须在这些字段中编写什么来打开我的"BasicNotificationActivity"?
android firebase firebase-cloud-messaging firebase-notifications