NOTE: this is the recommended method for implementing you TWA application and the main purpose is to somehow attach Adtrace's life cycle into the app's life cycle.
ground rolls:
- add
permissionsandproguardrolls anddependencies! more info - create an
Applicationclass, create anAdTraceConfigobject (obviously with your own customizations) and feed it toAdTrace.onCreate(config). more info - have
AdTrace.onResume()andAdTrace.onPause()attached toApplication. make sureonPuaseonly triggered when app is off not sooner! more info