Git Product home page Git Product logo

morristech / hms-push-clientdemo-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hms-core/hms-push-clientdemo-android

1.0 1.0 0.0 15.26 MB

Huawei Push Kit sample code for Android client. HUAWEI Push Kit is a messaging service provided by Huawei for developers. It establishes a messaging channel from the cloud to devices.

Home Page: https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/push-introduction?ha_source=hms1

License: Apache License 2.0

Java 52.95% Kotlin 47.05%

hms-push-clientdemo-android's Introduction

HMS Core Push Kit Sample Code (Android)

Apache-2.0 Open Source Love Open Source Love

English | δΈ­ζ–‡

Contents

Introduction

In this sample code, you will use the created demo project to call APIs of Push Kit. Through the demo project, you will:

  1. Obtain a token of Push Kit. . Receive notification messages or data messages from Push Kit.

For more information, please refer to Service Introduction.

You can use HMS Toolkit to quickly run the sample code. HMS Toolkit supports one-stop kit integration, and provides functions such as free app debugging on remote real devices. To learn more about the integration by HMS Toolkit, please refer to the related section.

Preparations

  1. Register as a Huawei developer. . Create an app and start APIs. . Import your demo project to Android Studio 3.X or later. Download the agconnect-services.json file of the app from AppGallery Connect, and add the file to the app-level directory (\app) of your project. Generate a signing certificate fingerprint, add the certificate file to your project, and add the configuration to the build.gradle file. For details, please refer to the integration preparations.

Installation

To use the functions provided in the sample code, install HMS Core (APK) 4.0 on your phone in one of the following methods: Method 1: Compile and build the APK in Android Studio. Then, install the APK on your phone and debug it. Method 2: Generate the APK in Android Studio. Use the Android Debug Bridge (ADB) tool to run the adb install {YourPath}\pushkit-android-demo\app\release\app-release.apk command to install the APK on your phone and debug it.

Environment Requirements

Android SDK 23 or later and JDK 1.8 or later are recommended.

Hardware Requirements

A computer (desktop or laptop) running Windows 10 or Windows 7 A Huawei phone with a USB data cable, which is used for debugging

Technical Support

You can visit the Reddit community to obtain the latest information about HMS Core and communicate with other developers.

If you have any questions about the sample code, try the following:

  • Visit Stack Overflow, submit your questions, and tag them with huawei-mobile-services. Huawei experts will answer your questions.
  • Visit the HMS Core section in the HUAWEI Developer Forum and communicate with other developers.

If you encounter any issues when using the sample code, submit your issues or submit a pull request.

License

The sample code is licensed under Apache License 2.0.

hms-push-clientdemo-android's People

Contributors

hmspushkit avatar mike-mei avatar

Stargazers

 avatar

Watchers

 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.