Note: You need to turn off the log function before the app releases.
import { ATSDK } from "db://assets/script/AnyThinkAds/ATSDK";
ATSDK.setLogDebug(true);
● How to Use
import { ATSDK } from "db://assets/script/AnyThinkAds/ATSDK";
ATSDK.showDebuggerUI("your debug key");
● During the process of displaying pop-up ads, press the home button to exit to the background, and then click on the application logo to return. If the ad is missing or there is no callback
Check the Manifest.xml configuration of the startup activity of the application, and the launchMode needs to be standard. Add the following code to the onCreate () method that starts the activity:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
......
if ((getIntent().getFlags() & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) != 0) {
finish();
return;
}
......
}
Note: Android project needs to be exported for processing