更新时间:2023-02-26 20:47:45
事实证明,修正很容易.
The fixed turned out to be rather easy.
使用ActivityFlags.SingleTop
代替使用ActivityFlags.ClearTop
和ActivityFlags.NewTask
.
然后在MainActivity.cs中覆盖OnNewIntent方法.
Then in your MainActivity.cs override the OnNewIntent method.
protected override void OnNewIntent(Intent intent)
{
base.OnNewIntent(intent);
ProcessPushNotification(intent);
}