Huawei App Messaging Service Part1 - Huawei Developers

Huawei App Messaging Service Part1
Hello everyone, I will explain what is app messaging service, what are the advantages, what are the differences from push kit and how can we use the service in our own applications. App messaging is a service that provides messages and notifications to target active users of the application. Using the console, we can send a message to the application in the format desired, when the users use the application.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In which scenarios can we use the App Messaging?
App messaging is used in almost all kinds of applications, from games, banking applications, food service applications to shopping brands.
Online Shopping Mobile Applications
One of the most well-known of these is discount or opportunity campaign information on online shopping websites’ mobile applications. These shopping sites detect the requests of the users according to the behavior analysis of the users or the events such as button clicks that will trigger the app messaging. According to these analyzes, they present messages about their campaigns to the user.
Mobile Games
Another well-known scenario is in-app information, instructional explanations and sales campaigns in mobile games.
The Themes Applications
One of the scenario examples is its use in applications that provide visual services on the phone. In these applications, new product information in the application is made using the app messaging image feature.
Encourage users
Another scenario is that app messaging can be used to encourage users to watch video, to share app-related features, campaigns, game scores on their social media and to keep up with payment transformation.
Also, with the help of app messaging, We can encourage users to engage with our applications.
Use For Advertising
If we have an advertising agreement with other brands, we can deliver the ads of these brands to users with app messaging in the template we want.
*According to the usage of the applications of the users, their preferences can be analyzed and certain messages can be presented to the user
*The preferences made by the users while using the applications can be analyzed and the messages determined using these analyzes can be presented to the user.
*According to our scenarios, messages can be presented in the form of cards, pictures.
*Data about users can be collected.
Differences Between App Messaging and Push Kit
*App messaging message is arranged by the client and triggered by an event. Push kit message is transmitted by server.
*App messaging message is displayed when the user is using our application. However, It is enough to install the application on our phone to receive the push kit message.
*There are many templates in app messaging and we can customize them. The message style is simple. The notification bar only has a predefined simple style template.
*App messaging message contents are determined according to user behavior. But, the app kit message has weak correlation with user behavior.
*App messaging has attractive and enhancing features for active users. However, app kit message is used to deliver simple notifications and reminders to users about the app.
Getting Started
Development Environment and Skill Requirements
*A computer with Android Studio installed for app development
*Skills in Java and Android Studio
*A developer account registered by referring to Registration and Verification
Device Requirements
*A device running Android 4.2 or a later version
Preparations Before Development
Before we start to apps development , we should apply some steps to our own project. the following preparations:
*Create an app in AppGallery Connect.
*Create an Android Studio project.
*Add the app package name.
*Configure the Maven repository address and AppGallery Connect gradle plug-in.
*Synchronize the project.
we can follow the link below for the steps above.
("https://developer.huawei.com/consumer/en/codelab/AGCPreparation/index.html#0"]https://developer.huawei.com/consumer/en/codelab/AGCPreparation/index.html#0[/URL]
the App Messaging SDK Integration
We need to download and add SDK into our application for App messaging.
1. Firstly, we need to sign in to AppGallery Connect and select My projects.
2. Secondly, we need to select the app then we need to enable App Messaging using the app list in our project.
3. After that, we need to click agconnect-services.json to download the configuration file from the project setting page and copy the agconnect-services.json file and paste it to the app root directory.
4. Fourthly, we need to open the app-level build.gradle file and add the following code for HUAWEI Analytics Kit and the App Messaging SDK integration. Then synchronize the configuration.
("https://gist.githubusercontent.com/hakki2391/4b875a293272b35680d64f2ad2251d08/raw/f716762bfb1a946be60d7d30c862a17fc886c7d2/Dependencies")
Enabling App Messaging
*Firstly, we will sign in to AppGallery Connect and select My projects.
*Secondly, we will find our project from the project list and click the app for which we want to enable App Messaging on the project card.
*Finally, we will go to Growing then we will find App Messaging and click Enable now.
How can we create a Message
*Firstly, sign in to AppGallery Connect and select My projects.
*Select the app for which we need to enable App Messaging from the app list in our project.
*Go to Growing then find App Messaging.
*Click New.
*Set the style and content. We can set Type to image, banner, and pop-up like below
*We will use pop-up.
*Now, set other parameters as required. Click Next.
*On this point, set the sending target condition and the package name of the current app.

Related

AppGallery Connect 10.5 | Build Apps with Ease, and Operate Them As You Please

This article is from HUAWEI Developer Forum which you can obtain latest news about Huawei products
Forum link: https://forums.developer.huawei.com/forumPortal/en/home
​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
AppGallery Connect is a one-stop open service platform for the entire app lifecycle, designed to facilitate enhanced, and accelerated app building and running, giving you a leg up on the competition. AppGallery Connect 10.5, the platform's latest version, provides for a wholly optimized user experience, including a home page with futuristic visual effects, cross-platform app management capabilities, and access to a broad array of services, such as App Messaging, Cloud Storage, and Auth Service. These updates give you the tools to better build and operate your apps.
Brand-new home page
The home page has assumed a fresh new, user-friendly layout. The My projects entry enables you to manage apps of different platforms; Hot services provides a glimpse at trending services, and More services displays a brief overview of all available services. Service cards also provide direct access to corresponding services, sparing you the hassle of having to search for a desired service, and find it from a lengthy list.
Visit https://developer.huawei.com/consumer/cn/service/josp/agc/index.html to try out the new version now. You'll notice that AppGallery Connect has designed a unique icon for each service, making it easier than ever to identity them.
App Messaging
This service provides invaluable assistance for refined operations, by sending contextual messages to active users when specific events are triggered, boosting user engagement and stickiness. In-app messages can work in tandem with your app's activities. For instance, if you have a shopping app, it can display a message instructing the user to claim coupons upon repeated taps on an item by a user when authorized or after message subscription by the user. Or if you have a reading app, the app can automatically display messages to intensive users who have read for more than half an hour in a single session, offering a 20% discount off of subscriptions. These types of messages can successfully boost your app's conversion rate.
You have the option of using a pre-set style, or customizing the display of your in-app messages. Image messages are recommended if the content in the message is relatively simple.
Banner messages contain a thumbnail, with the message title and body, and are displayed at the top of the screen. Users only need to tap on the banner message to be directed to the corresponding page.
Pop-up messages are recommended for richer, and more complex content, as they consist of an image, title, and body, as well as up to two buttons. Examples of each message type are shown below:
Cloud Storage
Cloud Storage incorporates a treasure trove of premium storage, upload, and download functions for a wide range of different objects, including images, videos, and audio files. The Cloud Storage capability is bolstered by the following attributes:
1. Airtight protections, enabled by declarative security and automatic encryption mechanisms;
2. High degree of stability, thanks to the implementation of resumable transfer and intelligent network acceleration;
3. Autoscaling, to provide for automatic resource scheduling and enterprise-level storage.
These characteristics allow for you to focus single-mindedly on improving the quality and user experience within your app – reserving all of the hassles associated with developing, deploying, maintaining, and expanding capacity for storage servers, or monitoring server indicators to ensure availability, reliability, and durability – for AppGallery Connect.
Enhanced Auth Service
Building a user authentication system is both challenging and costly.
Auth Service makes the construction of a secure and reliable user authentication system, a hassle-free and cost-effective process. Authentication capabilities are provided as services, meaning that you can assemble all of the services you need in code for your app, with minimal O&M work.
The new and improved Auth Service supports a wider range of authentication modes, including mobile numbers, email accounts, and Apple IDs, and can be integrated into iOS apps. If you opt to integrate Auth Service before August 1st, 2020 , You will be eligible to receive the following benefits:
1. 30,000 free SMS verification messages every month
2. Dedicated technical support during service integration
3. An opportunity for broad-based exposure, as a successful case study
The free quota of SMS verification messages applies only to the mobile number + verification code authentication mode. If you are interested, please send your information in the following format to [email protected]: [Company name + App ID].
AppGallery Connect also comes with a version history management function, which allows you to query and download the app versions you had previously developed, as well as an interaction center that provides for direct communication with the platform. We think that you'll agree that AppGallery Connect 10.5 is chock-full of surprises. Just sign in to explore a pioneering new version for app development!
You can also click the link below, to learn more about Auth Service, Billing, Version history, Interaction center, and other services.
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-introduction

Huawei Ability Gallery - App Ability

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What is Huawei Ability Gallery (HAG)?
Huawei Ability Gallery is a core capability of the HMS Core ecosystem. HAG creates more convenient experience for users and enables more efficient service distribution for developers, achieving a win-win-win situation for users, developers, and Huawei.
What are HAG Abilities?
Abilities link user intent with various service offerings. Developers define abilities in Huawei Ability Gallery, and users can use these abilities on Huawei devices or through other traffic entries.
HAG provides developers three abilities type
App Abilities: App abilities are presented by icon, and developers must provide deep links to the associated apps.
Card Ability: Developers use quick app development technology to develop ability cards (including data processing and display logic), and abilities are displayed as cards. Information can be displayed in card mode.
Content Ability: Huawei Ability Gallery obtains data from developers’ servers through APIs and provides content abilities for Huawei products. Huawei products then present the abilities as defined. Content abilities can be presented by card or voice.
What is App Ability?
App Abilities which are presented by icon are used to redirect user to application. We can use app Ability with APK and RPK. All app abilities are shown at Instant Access panel on Huawei Assistant page.
Global Search: We can search something at there.
Instant Access: Users click the icon or banner and redirect to APP/Quick App.
Smart care: there are smart cards recommended by the system to serve the users.Cards and contents abilities are displayed at here.
Developers can be created app abilities as static or dynamic ;
Static app ability is an icon and it redirects user to related app.
Note : App abilities aren’t displayed without app installed If related app is Native application(APK).If App ability was created to Quick app (RPK) , users don’t need to install app first.
Dynamic app ability can be used to send parameter to application via HiVoice. For example , When the users want to open an application using specific parameter like Hotel name,book name,music name, etc. Dynamic App abilities can be used .They just need to define parameters inside redirect parameters .You can define many parameters inside there.
Also We can launch app using app keyword is used for triggering an app by voice.If your app ability supports multi languages , You can many keywords for all of them. A maximum of 10 keywords can be configured for each language.
Note: HiVoice uses Celia.currently Celia is available in P40 and following languages and regions:
Languages: English (UK), French (France), Spanish (Spain)
Countries / Regions: United Kingdom, France, Spain, Chile, Mexico, Colombia
Detail: You can follow link to get more information for Celia : Link
How can we create an app Ability?
Note : If you want to create ability , you need to have Entertainment Account .You can create app ability inside 1 or 2 days.
While we create an app ability , We must follow specific way.
Firstly, app ability’s icon design should be done. Icon design has many restriction like size , color , icon border type ,etc.
to get more information you can follow this link (Icon Design Rules).
We need to create deeplink to redirect users.Redirection URL in a deep link, please follow the filling rules.
Under this line you can see correct formats for Both APK and RPK solution:
huawei://
com.huawei://
com.huawei://hag
com.huawei://hag/app/ability
com.huawei://hag/ability?type=app&test=1
Note: RPK and APK have different deeplink integrations.
If you want to create deeplink for APK ,you can define them inside activity or Navigation XML files.I want to give an example for it :
On the other hand You want to create deeplinks to Quick app , You should define them inside manifest file of Quick App.We must add path parameter under router tag .Quick apps use it to redirect.
After add path parameter under Router , You can define deeplink like :
hap://app/quickAppPackagename/hello
How can we test deeplinks?
You can test deep-links with adb .If there is no problem , Your Application automatically is opened . You can use CMD to work ADB commands .Also following code helps you for testing deep-link
adb shell am start -a android.intent.action.VIEW -d deepLink
Examples Of Adb Commands :
adb shell am start -a android.intent.action.VIEW -d pettracker://pet-tracker.fi/home
Note: pettracker://pet-tracker.fi/home is our deeplink , It redirects user to specific fragment.
If you want to send parameter with it , you can use following deeplink
adb shell am start -a android.intent.action.VIEW -d pettracker://pet-tracker.fi/track/Fluffy
After These operations finished , We can start integration to related app.If you want to create HAG ability , you must have Entertainment account.otherwise you never see Huawei Ability Gallery panel on console.
While We begin to create app ability , we have to select countries/regions for release the ability.There are three region Europe,Russia and AALA(Asia-Africa-Latin America).
Note: If your ability needs to serve two countries or regions covered by different sites, create it on both sites. For example, if you want to server both Morocco and France, create an ability on Huawei Ability Gallery (AALA) and Huawei Ability Gallery (Europe).
After selecting a site, you will be prompted to sign the Huawei Ability Gallery Service Agreement. Click App ability, set required parameters, and click Create.(Ability Name has to contain app name .For example your App name Pet Tracker , your app Ability name can be Pet Tracker Ability)
Select countries/regions for release.You can also create an ability for each operations region independently.
We must configure an interaction model.Interaction model page includes ability name ,ability category and ability trigger mode.Under this page you determine trigger mode . For example keyword trigger mode. User can search your app in HiSearch on Huawei assistant page .If your user’s intent matches declared keyword your app ability displayed on screen.
We can configure a deep link that redirects a user from an ability icon to an app on Lint settings page. The deep link can be created for APK or RPK .
Finally Click Ability information page. Fill in basic information and ability display information, and click Save. If Ability information supports multi-language presentation, you can click Manage Languages to select and manage languages, and configure the relevant Ability information.
How can we test created App ability?
Huawei provides us test platform for App abilities.Before releasing an app ability, test its functions and content and make sure that all of them pass the test.
Sign in to Huawei Ability Gallery, go to Test > Release for test, and click Release for test.
We need QR code to test app abilities for this reason click Simulation test to obtain a test QR code. The test QR code is displayed on the right.
After Creating QR code , we can scan it with Our Device.We can do this operation using Huawei Ability test tool. Start Huawei Ability test tool select App Ability, and tap Scan QR Code, and scan the QR code then click search.
After the scanning is successful, set Intent category and Keyword, tap SEARCH, and test the functions and content.
Related Links
HAG Web Page : Link
App Ability Web Page : Link
App Ability Configuration Page : Link
App Ability Design Page : https://developer.huawei.com/consumer/en/doc/development/service/5060600
Thanks to Serkan Mutlu for this article.
Original post: https://medium.com/huawei-developers/huawei-ability-gallery-app-ability-5827c30d1360

Huawei Cab Application Part 3 - In-App Purchase Subscription, Analytics, Native Ads

Introduction
Huawei Cab Application is to explore more about HMS Kits in real time scenario, use this app as a reference to CP during HMS integration, and they can understand easily how HMS works in real time scenario, refer previous articles:
Part1 (Login Module with Account Kit and AGC Auth Service)
Part2 (Dashboard Module with Map, Site, Location Kits and TomTom API)
Subscription Module
In-App Purchase Kit: Subscription page allows a Huawei cab user to subscribe the product from the product list and based on subscription products like Silver, Gold and Diamond. User will get benefits like remove the ads on the app, get priority support and also user will get top drivers and cars during cab booking.
Native Ad: Native ads displayed in-between cab booking history list items and removed the ads, once the user subscribes the product.
Analytics Kit: Report the subscription event details to Huawei analytics.
App Messaging: Sending promote offer for the subscribed users through app messaging.
HMS Kits Covered in Subscription Module:
1. Huawei In-App Purchase Kit
2. Huawei Native Ads
3. Huawei Analytics
4. AGC App Messaging
App Screenshots
Subscription
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
App Messaging
Native Ads
Huawei IAP Kit
In-App Purchases aggregates global mainstream payment methods and supports users to buy various types of virtual products and services within an app. IAP provides users with a convenient and high-quality experience and also helps developers to continuously earn revenue and create more business value globally.
Huawei IAP provides a product management system (PMS) for managing the prices and languages of in-app products (including games) in multiple locations.
Sandbox Testing
Sandbox testing allows you to complete end-to-end testing without real payments when you connect to Huawei IAP for joint commissioning. You can configure test accounts in the AppGallery Connect and allow these testers to perform sandbox testing.
Before testing, you need to add test accounts, which are real HUAWEI IDs, under Users and permissions in the AppGallery Connect. For details, refer to Managing Tester Accounts.
Huawei Native Ads
The Native Ad API allows you to build a customized experience for the ads you show in your app. When using the Native Ad API, instead of receiving an ad ready to be displayed, you will receive a group of ad properties such as a media content, ad title, ad source, call to action, and you will have to use them to construct a custom view where the ad is shown.
You will also get dislike this ad, rating, etc.
Huawei Analytics Kit
Huawei Analytics Kit is a one-stop data analysis platform for mobile app developers that utilizes data to drive daily app operations, bringing out dynamic details in a comprehensive, timely, and efficient manner. These cutting-edge solutions inspire out-of-the-box app service innovations, helping developers and operations personnel grow revenue and expand the reach of their apps.
Events: An event refers to the behaviour of a user with regard to a product, or in other words, a specific event is something that a user completes at a specific time point, place, and manner.
Real Time Example: Take the process of browsing for a typical item on a cab booking platform, as an example. Corresponding events can include tapping the registration button, accessing the product details app, and exiting the page. Therefore, event monitoring is, in essence, the detailed study of user behaviour within an app.
Huawei In-App Messaging
Huawei In-App Messaging is one of the simplest tools, but it is super useful to keep your active users. The service promotes them to keep using the app by sending messages that enhance or promote certain features of your app.
Note: Merchant Service
1. Choose Console > Developer center > Settings > Merchant Service.
2. You need to activate the IAP service for the first time, Huawei will ask for your bank account information and tax information for the payment.
3. Finally click submit. Verification of this information will take approximately 1-2 days.
Integration Preparations
You must complete the following preparations to Integrate Huawei IAP, Analytics, Ad Kits and AGC App Messaging.
Create an app in the AppGallery Connect.
Create a project in Android Studio.
Generate a signing certificate.
Generate a signing certificate fingerprint.
Configure the signing certificate fingerprint.
Add the app package name and save the configuration file.
Add the AppGallery Connect plug-in and the Maven repository in the project-level build.gradle file.
Configure the signature file in Android Studio.
Configuring the Development Environment.
Enabling Huawei IAP, Analytics, Ad Kits and App Messaging
1. Sign in to AppGallery Connect, select My apps, click an app, and choose Develop > Overview > Manage APIs.
2. Choose Earning > In-App Purchases. If it is the first time that you use Huawei In-App Purchases (IAP), click Settings.
3. Once configuration is successful, the page displays the public key used for subsequent payment signature verification and a parameter for configuring the subscription notification URL.
4. Choose Huawei Analytics > Project overview and Enable Analytics Service.
5. Choose Growing > App Messaging and Enable.  
Configuration
1. IAP: Configure Product Information. Click the Operate tab. Choose Product Operation > Product Management from the navigation tree on the left, click the Products tab, and click Add Product.
Select Default currency and Default price (tax included) of the product and Save.
Activate the product in operation column from the product list.
2. Creating an App Message. Choose Growing > App Messaging > New.
Enter Name and Description for your in-app message.
Select Type as Image and Provide Image URL.  
Select the App package and select sending target. This section is used to set conditions for matching target users.
For more information, you can visit https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0202367598227240326&fid=0101187876626530001

Huawei App Linking : Increase views for your in-app content

Introduction
App Linking or deep linking is a technology which enable businesses to provide ease of access for their potential services.
Deep links are links which re-direct users directly to a specific app or application feature instead of a website or store.
They are used to re-direct users straight to in-app locations, saving the users time and energy.
Deep linking does this by specifying a custom URL scheme (iOS Universal Links) or an intent URL (on Android devices) that opens your app if it’s already installed. Deep links can also be set to direct users to specific events or pages.
Huawei App Linking leverage developers/users to create cross platform links which can work as defined and can be distributed via multiple channels to users.
When the user taps the link, it will be re-directed to the specified in-app content.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Huawei App Linking has multiple functions:
1. Support for deferred deep links
2. Link display in card form
3. Data statistics
Huawei App Linking supports the link creation in multiple ways:
1. Creating a link in AppGallery Connect
2. Creating a link by calling APIs on the client
3. Manually constructing a link
Use Case
There could be multiple use cases for this capability, however I will throw some light on a use case which is most commonly adapted by the applications with complex UX and high transmission between different in-app pages.
In this scenario one application shares the link between counter applications to re-direct to in-app content of a third application.
We will have an application which shares the app link at one end to another (It can be a simple chat platform capability). At the receiver end, user can click on the link and directly navigate to the specific in-app content.
Working
Following are the steps to develop this scenario
1. Development of news application which will be deployed locally.
2. Development of share application which will be deployed locally.
3. Integration of Huawei App Linking Api’s to receive the link and re-direct to the in-app content of news app.
4. Enabling the App linking service in AppGallery Connect.
5. Creating deep link through AppGallery Connect.
Development Overview
1. Must have a Huawei Developer Account
2. Must have Android Studio 3.0 or later
3. Must have a Huawei phone with HMS Core 4.0.2.300 or later
4. EMUI 3.0 or later
Software Requirements
1. Java SDK 1.7 or later
2. Android 5.0 or later
Preparation
1. Create an app or project in Android Studio.
2. Create an app and project in the Huawei AppGallery Connect.
3. Provide the SHA Key and App Package name of the project for which you want the App Linking to be done (Example: News application)
4. Download the agconnect-services.json file and paste to the app folder of your android studio.
Integration
Add below to build.gradle (project)file, under buildscript/repositories and allprojects/repositories.
Code:
Maven {url 'http://developer.huawei.com/repo/'}
Add below to build.gradle (app) file, under dependencies to use the App Linking SDK.
Code:
dependencies{
// Import the SDK.
implementation 'com.huawei.agconnect:agconnect-applinking:1.4.1.300'
}
News Application
News application is developed with multiple content and complex UX to show the capability of the Huawei App Linking.
I will highlight some of the important code blocks for this application.
Main Activity
This activity is the entry point for the application which will have the navigation tab to handle the multiple news categories.
Also, it receives the App Link, read it and re-direct it to the corresponding content.
Creating a link in AppGallery Connect to directly open the Science tab for the News Application through a link
1. Login to AppGallery Connect.
2. Choose My Projects > NewsWorld(App Linking).
3. Choose > Growing > App Linking>Enable now
More details, you can visit https://forums.developer.huawei.com/forumPortal/en/topic/0204412564790410224

App Linking FAQs

Q: What is HUAWEI App Linking? What does it do?
Description: App Linking creates a link to be shared. When a user taps the shared link, a specific app is launched, and then they are linked to specific in-app content.
Advantage: Links of App Linking can be used on multiple platforms, including Android and iOS devices, and PC browsers.
Function: Once you integrate App Linking into your app, you can send a link to your users for them to share with their friends, or use one for promotion.
Q: What are the differences between HUAWEI App Linking and other competitive products?
A deep link is a basic capability of Android. It identifies apps based on a URL scheme. That is, when a user taps a link or program to access a web URL, the Android system identifies and displays all apps that support the URL scheme. After the user selects one from the list, that app can be launched.
App Links (Android):
Android supports App Links since 6.0. App Links are a special type of deep links. With the function, a user can directly open an app through a web address without needing to choose one from a pop-up.
Universal Links (iOS):
Universal Links are App Links of the iOS version, and have been available since iOS 9. They allow apps to be launched through HTTP links.
Though they both have been developed for years, they have two disadvantages:
1. Poor cross-platform compatibility: It takes a lot of workload to adapt them to different platforms.
2. Poor user experience when a requested app is not installed: When a user taps a link to launch an app they haven’t installed on their device, they need to install it first by themselves before accessing the in-app content.
HUAWEI App Linking can solve the problems. It not only has all the advantages of the solutions above, but also does better. App Linking supports both Android and iOS devices. It allows you to set link behavior as well. You can link a user to HUAWEI AppGallery for app install, and they can still be linked to the target content after installing the app and launching it for the first time.
Q: Does App Linking support non-Huawei devices?
Currently, the App Linking SDK 1.4.1.300 no longer depends on HMS Core (APK), and can be used on all Android devices.
The iOS SDK has also been released. For details, please visit:
https://developer.huawei.com/consum...c-applinking-sdkdownload-ios-0000001058715537
Q: If a user has not installed HUAWEI AppGallery on their device, can they be redirected to the local app store?
You can set the link behavior to Open a local app store, as shown in the following figure.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For non-Huawei Android devices:
App Linking uses the MARKET protocol to launch all app stores installed on the device for the user to choose from. After the user selects an app store, App Linking sends your app package name to it. Then the app store will search for and display your app.
For iOS devices:
The user will be linked to your app details page on App Store.
Q: Are there any restrictions on data statistics of App Linking?
l For a link of App Linking created in AppGallery Connect, you can directly view the numbers of clicks, first-opens, and re-opens. (This function is not supported if the link is created on the device side using the App Linking SDK.)
l App Linking can work with HUAWEI Analytics to collect relevant events. All tracing parameters you configure can be viewed in HUAWEI Analytics.
For more details, please check:
https://developer.huawei.com/consum...ry-connect-Guides/agc-applinking-introduction

Categories

Resources