Updated on 2025-12-29 GMT+08:00

Connecting Agents

Procedure

  1. Log in to the APM console.
  2. Click on the left and choose Management & Governance > Application Performance Management.
  3. In the navigation tree on the left, choose App Monitoring > App List. On the displayed page, click Connect Mobile App.
  4. Select iOS for App Type. Select an application from the drop-down list and enter a mobile app name.
  5. Select one or more SDK extended configuration items. You can also select no items. The data of unselected items will not be displayed.
  6. Click Create Mobile App.
  7. Track the service.

    • iOS SDK access
      1. Click Download to download the configuration file.
      2. Place the downloaded file in the root directory of the project, as shown in the following figure.
        Figure 1 Root directory of the iOS project
      3. Add SDK dependencies.
        • Add the source to Podfile.
          source 'https://github.com/CocoaPods/Specs.git'
        • Add dependencies to Podfile.
          pod 'APMSDK'
        • Open the terminal, run the cd command to go to the directory where Podfile is stored, and then run the following command:
          pod install --repo-update
    • Flutter access
      1. Click Download to download the configuration file. If the mobile app fails to be created, the Download button is grayed.
      2. Use Xcode to open flutter_app/ios/Runner.xcworkspace, as shown in the following figure.
        Figure 2 Root directory of the Flutter project
      3. Drag the downloaded file to the root directory of Runner, as shown in the following figure.
        Figure 3 Root directory of Runner
      4. Add SDK dependencies.
        • Add the APM Flutter SDK to flutter_app/pubspec.yaml.
          dependencies:
          ...
            apm_flutter_plugin: {apm_flutter_sdk_version}
        • Add the APM iOS SDK to flutter_app/ios/Podfile.
          pod 'APMSDK', '{apm_ios_sdk_version}'