Giter Site home page Giter Site logo

jisoo134 / hms-analytics-demo-quickapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hms-core/hms-analytics-demo-quickapp

0.0 0.0 0.0 126 KB

HmsAnalyticsKitDemo is a QuickApp client that applying HUAWEI Hianalytics SDK used for showing how to collect user engagement and user preference.

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

License: Apache License 2.0

CSS 100.00%

hms-analytics-demo-quickapp's Introduction

HMS AnalyticsKit Demo for QuickApp

English | δΈ­ζ–‡

Table of Contents

Introduction

HmsAnalyticsKitDemo is a QuickApp client that applying HUAWEI Hianalytics SDK used for showing how to collect user engagement and user preference. Read more about Hianalytics.

Installation

  1. Use HUAWEI QuickApp IDE to open the decompressed project, we provide two demos:

    1. quickapp.hmsanalyticskitdemo: this is a completed code for the sample app.
    2. quickapp.hmsanalyticskitdemo-start: this is a starting code that you'll build upon during this codelab.
  2. Use the "Npm -> Start Npm Library" to generate "package.json" file.

  3. Run the following command to install the AnalyticsKit SDK for QuickApp:

    npm install --save @hmscore/analytics-sdk-quickapp

Configuration

Create a QuickApp in AppGallery Connect and obtain the project configuration, then copy it to your QuickApp project.

Environment requirements

Hardware requirements:

  1. A computer
  2. An Android phone

Software requirements:

  1. The HUAWEI QuickApp IDE
  2. The package manager npm , which typically comes with Node.js
  3. The codelab's sample code
  4. A terminal/console

Sample Code

After running the app you should see a screen like this:

Click the button TRUE or FALSE to answer the question; Click the NEXT, show the next question; Click POST SCORE, log the score user got. All the infomations will be upload to Hianalytics, and you can see these infomations in real time using Real-time.

Click button SETTINGS:

You will be asked what your favorite sport is. This choice will be logged to Hianalytics as a User Property.

Question or issues

If you want to evaluate more about HMS Core, 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-quickapp's People

Contributors

mike-mei 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.