This is because the MainActivity's default launch mode is
"standard"
The default mode. The system creates a new instance of the activity inthe task it was started from and routes the intent to it. The activitycan be instantiated multiple times, each instance can belong todifferent tasks, and one task can have multiple instances.
Set the LaunchMode = LaunchMode.SingleTop
will resovle it.