Integrate

0. Latest ADX Android SDK version

1. Requirements

  • Android

    • compileSdkVersion 35 later

    • minSdkVersion 23 later

  • iOS

    • iOS 13.0 later

    • Xcode 16.0 later

    • CocoaPods

2. Adding the ADX Flutter SDK (Install Plugin)

1) Install via terminal command.

$ flutter pub add adx_sdk

2) Add the dependency in pubspec.yaml.

  • If installed via terminal command, you can skip this step.

  • Add adx_sdk to the dependencies.

dependencies:
  adx_sdk: ^1.0.8

3) Finally, import the ADX SDK Dart file.

import 'package:adx_sdk/adx_sdk.dart';

3. Supports iOS 14+

If supporting iOS 14 or later, you must implement the ATT(App Tracking Transparency) Framework to obtain the IDFA (Identifier for Advertisers). For detailed instructions, please refer to the link below.

App Tracking Transparency

If you are not serving the European Economic Area (EEA), it is recommended to use the app_tracking_transparency module to implement ATT. Please refer to the sample project for this.

4. AdMob APP ID Setup

Set the AdMob APP ID in the Android and iOS projects within the Flutter project.

If the AdMob APP ID is not set, the app may crash after launch.

  • Open the AndroidManifest.xml file in the Android project within the Flutter project.

  • Add "com.google.android.gms.ads.APPLICATIONID" and the issued AdMob APP ID to the <meta-data> tag.

<application>
    <meta-data
        android:name="com.google.android.gms.ads.APPLICATION_ID"
        android:value="YOUR_ADMOB_APP_ID"/>
</application>

Last updated

Was this helpful?