minSdkVersion(16)) and its target/compile version is the minimum required for Google Play.
compileOptionsmust be specified in your application
onCreatefunction of your main
Applicationclass, call the
Didomi.getInstance().initializefunction and pass a reference to your
Applicationinstance and your API key:
Didomiobject until it is actually ready to handle your requests. Use the
onReadyfunction to register a listener for the ready event.
setupUIfunction of the SDK in the
onCreatelifecycle event of your main activity:
setupUIfunction to avoid leaks.
setupUIfunction is called on every activity that the user can launch the app on. This will ensure that consent is always collected as needed and there is no path where the user can launch the app without consent being collected. If
setupUIis missing at some entry points, you will see lower consent rates as users will be using the app without giving consent.
true. Default is
didomi_config.jsonfile that must be placed at the root of your
assets/folder. Create a file with the following content to get started:
initializecall to set the
didomi_config.jsonconfiguration file from. That allows you to update the SDK configuration without having to re-publish you mobile application.
assets/didomi_config.jsonas a fallback.
app.vendors.iab.requireUpdatedGVLflat set to false in the CUSTOM JSON section when editing your notice on the Console app (or in your local
didomi_config.jsonfile if that's the case).
app.vendors.iab.updateGVLTimeoutproperty (in seconds).