Giter VIP home page Giter VIP logo

hms-core / hms-analytics-demo-ios Goto Github PK

View Code? Open in Web Editor NEW
13.0 14.0 6.0 301 KB

HMS analytics kit demo provides an example of integrating HUAWEI Analytics Kit with an app. It illustrates how to collect predefined events and custom events on two pages, namely, question page or user attribute setting page.

Home Page: https://developer.huawei.com/consumer/en/hms/huawei-analyticskit?ha_source=hms1

License: Apache License 2.0

Ruby 0.69% Objective-C 73.10% Swift 26.21%
hms analytics ios huawei analyse-data analyse-ab-tests user-management analyse

hms-analytics-demo-ios's Introduction

HMS AnalyticsKit Demo for ios

hms

English | δΈ­ζ–‡

Table of Contents

Introduction

Hmsanalyticskitdemo provides an example of integrating HUAWEI Analytics Kit with an app. It illustrates how to collect predefined events and custom events on two pages, namely, question page or user attribute setting page. If you click TRUE or FALSE on the question page, automatically collected events including page exit and page entry will be logged when the page is switched. Read more about Hianalytics.

Getting Started

For more development guidance, please refer to the links below:

Development Guide

API References

In this example, we demonstrate how to use the analytics SDK for iOS by using the CocoaPods Tool, a dependency manager for Swift and Objective-C Cocoa projects.

First download the demo by cloning this repository or downloading an archived snapshot.

Open the CLI and navigate to the location of the Xcode project. Edit the Podfile file, add pod 'HiAnalytics', that is, the dependency for pod.

Install the pod and open the .xcworkspace file to view the project.

You should create an iOS app in AppGallery Connect, and obtain the agconnect-services.plist file and add it to the project. You should also generate a signing certificate fingerprint and add the certificate file to the project. More to Development Process

Installation

Use Xcode to open the decompressed project.

Configuration

  1. Create an iOS app in AppGallery Connect and obtain the project configuration file agconnect-services.plist. In Xcode, switch to the Project view and move the agconnect-services.plist file to the root directory of the app.

Supported Environments

Hardware requirements:

  1. A MAC computer (desktop or laptop)
  2. A iPhone phone, which is used to debug the developed app

Software requirements:

  1. HUAWEI Analytics Kit 5.2.0.300
  2. Xcode

Result

After running the app you should see a screen.

And click the button TRUE or FALSE to answer the question; Click the Setting to set user profiles.

Click button SETTINGS: When you click the Setting button, you will be asked for your favorite sports. These information will be logged as users attributes by HUAWEI Analytics Kit.

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

HmsAnalyticsKitDemo is licensed under the Apache License, version 2.0.

hms-analytics-demo-ios's People

Contributors

fenger-hash avatar iris156 avatar mike-mei avatar ywx994945 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.