/hms-dtm-demo-ios

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.

Primary LanguageObjective-CApache License 2.0Apache-2.0

HMS Dynamic Tag Manager(DTM) Sample for iOS

hms

English | 中文

Table of Contents

Introduction

With Dynamic Tag Manager, you can dynamically update tracking tags on a web-based UI to track specific events and report data to third-party analytics platforms, tracking your marketing activity data as needed.

This demo shows you how to track purchase events and report data, helping you integrate Dynamic Tag Manager quickly.

For more details, please refer to Development Guide.

Getting Started

Before you start developing an app, configure your app information in AppGallery Connect.

  1. Register as a developer.

Register a HUAWEI account.

  1. Create an app.

Create an app by following instructions in Creating an AppGallery Connect Project Adding an Web App to the Project.

  1. Integrating the HMS Core SDK.

Integration Using CocoaPods (Recommended). Manual Integration.

  1. Build the demo.

To build this demo, please first import the demo to Android Studio (3.X or later). Then download the agconnect-services.json file of the app from AppGallery Connect, and add the file to the app directory (\app) of the demo.

  1. Configuring App Information in AppGallery Connect.

Configuring App Information in AppGallery Connect.

  1. poerations on the Server.

Permissions. Creating a Configuration. Overview. Variable Management. Condition Management. Tag Management. Group Management. Version Management. Visual Event Management. Configuration Management.

  1. Client Development.

Procedure. Debug Mode.

Supported Environments

XCode 9.0 or later and iOS 8.0 or later

Result

Question or issues

If you want to evaluate more about HMS Core, r/HMSCore on Reddit is for you to keep up with latest news about HMS Core, and to exchange insights with other developers.

If you have questions about how to use HMS samples, try the following options:

  • Stack Overflow is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services.
  • Huawei Developer Forum HMS Core Module is great for general questions, or seeking recommendations and opinions.

If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.

License

The sample code has obtained the Apache License, version 2.0.