Coder Social home page Coder Social logo

fireline-emergency-specialist-llc / hms-news-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 28.58 MB

A sample news app shows how to integrate the capabilities of HMS Core into news & reading apps.

License: Apache License 2.0

HTML 0.72% JavaScript 1.74% CSS 0.17% Java 97.38%

hms-news-demo's Introduction

HMS Core News Demo App

δΈ­ζ–‡|English| Overview | Download | Features | Application Generation | Service Introduction | Technical Support | Licensing and Terms

Overview

The HMS Core news demo app demonstrates the process from releasing news through to display and consumption. This demo will help you learn how to integrate the capabilities of HMS Core into news apps and in which scenarios can these capabilities, like ML Kit, Push Kit, and Account Kit, play a part.

HMS Core provides an innovative solution for news apps to improve user experience, boost user engagement, and achieve sustainable business growth.

Download

Firstly choose the area you are in, then you can use a browser to scan the QR code and download a local version of the demo app.

China

Asia, Africa, and Latin America

Europe

Russia

Features

The HMS Core news demo app includes the major functions of news apps, such as:

  • Recommended news articles

  • News by category

  • Video

  • Audio narration

  • Editing and publishing news

  • Voice Search

  • Saving news to favorites and sharing them

  • Reading history

  • News push

  • One-tap sign-in and sign-out

  • Membership purchase

  • Ads display

Application Generation

Environment Requirement

  • Android Studio: 4.1
  • Android SDK: 26
  • Gradle: 6.3

Run locally

  1. Clone the repository:

     git clone https://github.com/HMS-Core/hms-news-demo.git
    

You can also download the ZIP package that contains the project.

  1. Copy JKS file and agconnect-services.json to the app directory. For details about how to generate the files, please refer to Configuring App Information in AppGallery Connect.

  2. Update JKS file information and app ID in app/build.gradle file.

  3. Cloud Storage is used in the demo. As Cloud Storage is still in beta, you need to send an email to [email protected] to reqeust to enable this service.

  4. Build the application from the command line:

     cd hms-news-demo
     gradle clean
     gradle build
    

Service Introduction

  • Account Kit allows your users to quickly sign in to your app with their HUAWEI IDs. These IDs will be used for as long as the users use your app.

    AccountKit

  • Ads Kit enables ads display. When your app is launched, this kit is called and the app will display a splash ad. When a user browses news on your app, the native ad is displayed in the feed, and before videos are played, a pre-roll ad will appear.

    AdsKitAdsKit

    AdsKit

  • When a user follows an account on your app, Push Kit is called to push another news story published by the same account.

  • Video Kit provides video-related functions, including video playback/pause, progress bar dragging, and full-screen playback.

    VideoKit

  • Location Kit helps you obtain user location to display local news.

  • ML Kit supports image super-resolution, text translation, and audio narration.

    MLKitMLKitMLKit

  • Image Kit can be used to edit images in the news editing scenarios, including image cropping and adding filters and stickers.

    ImageKit

  • App Linking allows your users to share news with their friends.

    AppLinking

  • In-App Purchases allows your users to purchase membership services and provides them with membership rights.

    IAPKit

  • Analytics Kit can obtain statistics about news consumption (loading and reading) so that you can analyze the app usage data and optimize the app accordingly.

Precautions

  • Purchasing subscriptions in the app will deduct money from the user's account. But the deduction will be refunded immediately.
  • This app allows users to sign in using their HUAWEI IDs and obtains the profiles and names of their accounts for in-app display.
  • All ads in the app are test ads.

Technical Support

If you want to evaluate more about HMS Core, HMS Core 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 the sample project, 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 sample project, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.

Licensing and Terms

The HMS Core News Demo App is licensed under the Apache 2.0 license.

hms-news-demo's People

Contributors

coolleizhu avatar turkeyinstitute 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.