Menu

Game abnormality

1. During the display of ads, press the home button to exit to the background, and then click the application logo to come back. The ad is missing or there is no callback?

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

2. When displaying ads, multiple processes of the same application appear in the recent task list. How to solve this problem?

Change android in Application in AndroidManifest :taskAffinityRemove this configuration

Previous
Interstitial screen and incentive anomalies
Next
Android SDK access FAQs
Last modified: 2025-05-30Powered by