目录

iOS Sample Code

The sample code provides a demo project that demonstrates how to call open APIs of HUAWEI DTM. Guided by the demo, you will learn how to process events in your app and report events to HUAWEI Analytics.

Sample Code

Find It on Gitee

Find It on GitHub

iOS sample code

Click here

Click here

Before using the sample code, read the README file in the sample project carefully. Run the sample code only after you complete the following operations:

  1. Sign in to AppGallery Connect, download the agconnect-services.plist file of your app, and copy the file to your app's root directory of the demo project.

  2. Change Bundle Identifier in TARGETS in the sample code to your app package name.