Check the Manifest configuration of the application's startup Activity, launchMode needs to be standard. Add the following code in the onCreate() method that starts the Activity:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.i(TAG, "--onCreate");
if ((getIntent().getFlags() & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) != 0) {
Log.i(TAG, "onCreate with flag FLAG_ACTIVITY_BROUGHT_TO_FRONT");
finish();
return;
}
}
Note: Unity developers need to export the gradle project for processing
Change android in Application in AndroidManifest :taskAffinityRemove this configuration