# agc-appmessaging-codelab-java **Repository Path**: appgallery_connect/agc-appmessaging-codelab-java ## Basic Information - **Project Name**: agc-appmessaging-codelab-java - **Description**: You can use App Messaging of AppGallery Connect to send relevant messages to target users actively using your app to encourage them to use key app functions. For example, you can send in-app messages to encourage users to subscribe to certain products, provide tips on passing a game level, or recommend activities of a restaurant. - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-27 - **Last Updated**: 2021-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## appmessaging codelab ## Introduction You can use App Messaging to send relevant messages to users actively using your app to encourage them to use key app functions. ## Preparing the Environment Before using the codelab app, prepare your Android development environment. ## Environment Requirements Android Studio 3.0 or later. ## Configuration Before running the quickstart app, you need to: 1. Register an account and pass identity verification if you do not have a HUAWEI Developer account. 2. Use your account to sign in to AppGallery Connect, create an app, and set Package type to APK (Android app). 3. Enable App Messaging and creat a message. 4. Download the agconnect-services.json file from AppGallery Connect and save it to the app root directory (appmessaging/app/ for the quickstart app). Before compiling the APK, ensure that you have saved the agconnect-services.json file to your project. Otherwise, a compilation error will occur. ## Sample Code The SDK supports message debugging. Sample code: src\main\java\com\huawei\appmessage\codelab\MainActivity.java ## License appmessaging quickstart is licensed under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0).