如何处理来自系统托盘的Android Push Message?

How to handle Android Push Message from the system tray?

在我的应用程序中,我收到来自 Azure 通知中心的推送消息。当我的应用程序在后台时,推送消息会进入系统托盘。

当用户单击推送消息时,它会将应用带到前台。我想将用户重定向到我的应用程序的特定 Activity。我不知道怎么办。有可能吗?

当应用程序在后台运行时,数据将作为额外的捆绑包发送。您可以在启动 activity 或闪屏时这样处理。

  Bundle bundle = getIntent().getExtras();
    if (bundle != null) {
          Check the data and redirect to the required activity from here.
    }