我在我们的应用程序中使用推送通知,当我在通知中心收到推送通知时,如果我单击该通知,它会正确重定向到该特定的 html 页面。但是当我收到多个推送通知时,如果我单击除第一个通知之外的任何其他通知,它将不会重定向,只有消息首先出现在通知中心列表中才会重定向。如何重定向通知中心android中的每条消息。下面是用于在android中重定向的代码。
public void onCreate(Bundle savedInstanceState) {       
    super.onCreate(savedInstanceState);             
    Bundle extras = getIntent().getExtras();        
    if (extras != null) {                                   
        super.loadUrl("file:///android_asset/www/homePage.html");       
        NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
        notificationManager.cancelAll();
    }
}