How to use App Linking on non-Huawei phones? - Huawei Developers

Huawei’s App Linking allows for cross platform deep linking. How does this work on Non Huawei phones that don’t have HMS core installed? Lets take a look!
Lets start by testing App Linking on non-Huawei phones according to the information presented in the App Linking codelab.
I integrated App Linking into a demo app by following the instructions in the codelab, and set the link opening mode to AppGallery and the local app store respectively.
Setting the link opening mode to AppGallery:
Java:
AppLinking.Builder builder = new AppLinking.Builder()
.setUriPrefix(DOMAIN_URI_PREFIX)
.setDeepLink(Uri.parse(DEEP_LINK))
.setAndroidLinkInfo(new AppLinking.AndroidLinkInfo
.Builder()
.setOpenType(AppGallery)
.build())
Setting the link opening mode to the local app store:
Java:
AppLinking.Builder builder = new AppLinking.Builder()
.setUriPrefix(DOMAIN_URI_PREFIX)
.setDeepLink(Uri.parse(DEEP_LINK))
.setAndroidLinkInfo(new AppLinking.AndroidLinkInfo
.Builder()
.setOpenType(LocalMarket)
.build())
I then installed the demo app on two non-Huawei phones to test App Linking between Huawei phones and non-Huawei phones.
{
"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"
}
As shown using the second code snippet we can see that App Linking is fully supported without the need of HMS Core. If the app has been installed on the non-Huawei phone, the in-app page can be directly opened without any problems.
If the app has not been installed on the non-Huawei phone and the link opening mode is AppGallery, the link will redirect the user to AppGallery. If AppGallery has not been installed, it will redirect the user to the AppGallery website.
If the app has not been installed on the non-Huawei phone and the link opening mode is set to local app store, the link will redirect the user to the local app store selected by the user. (Some mobile phone manufacturers will forcibly redirect the user to their own app store.)

Very useful sharing, thanks

Does it support a short link?

Related

HUAWEI Location Kit Scenario Description

1. Development Scenario
Location update
If your app needs to request the device location continuously, you can apply for the location permission for your app, call the requestLocationUpdates() API of Location Kit, set different request parameters (in LocationRequest), and specify a location mode as needed. To cancel location information callback, call the removeLocationUpdates() API.
Location semantics
If your app needs to obtain both the location information and its address information, you can set isNeedAddress in LocationRequest to true, specify a language and country code, and then call the requestLocationUpdates() API.
Activity identification
If your app needs to obtain the activity status of the user's device (for example, walking, running, or bicycling) or your app needs to detect activity status change of a user, you can apply for the activity identification permission for your app and call the createActivityIdentificationUpdates() API. To cancel activity identification update, call the deleteActivityIdentificationUpdates() API. If you want to detect user activity status change, call the createActivityConversionUpdates() API to listen on activity status changes of the current device. To cancel listening on activity status changes, call the deleteActivityConversionUpdates() API.
Geofence
If you are interested in a place, you can call the createGeofenceList() API to create a geofence based on the place. Then, Location Kit can sense the distance between the current device location and the geofence. When the device enters the geofence, a notification will be sent to your app. In addition, Location Kit can detect the duration during which the device stays in the geofence, and send a notification to your app if the duration reaches a specified value.
2. Development Process
The following figure shows the overall development process. The detailed development procedures are described in the following sections. If you have an app with third-party mobile services integrated, you can use HMS Convertor to automatically convert APIs of the third-party mobile services into HMS-based APIs, achieving quick integration of HMS services. To learn more about HMS Convertor, click here.
{
"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"
}

How to Download and Connect Your Huawei Watch/Band to Non Huawei Smartphone

{
"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"
}
As world is still going through the pandemic and daily activities coming to a halt. It is now more important than ever to take good care of your health by maintaining physical activites.
Huawei has a series of Smart bands and Smart Watches that can help you monitor your health 24x7 and the data gets synced with the Huawei Health App after sometime so that you may access it whenever you need.
Huawei Health App comes built-in with Huawei and Honor Smartphones but in case you are a non Huawei Android Smartphone user, you need to download the Health and AppGallery App in order to pair your Smart Fitness Device with your Health App.
You can acquire following benefits using Huawei Health App:
Pair and manage your HUAWEI/HONOR wearable devices
Record daily data of your steps, calories, and exercises
View your outdoor running trajectory
Customize your own running plan
Share your workout data with friends
To download and connect with Huawei Health App from a Non Huawei Device, perform the following steps:
▶ Visit https://appgallery.cloud.huawei.com/appdl/C10132067, to download and install Huawei HMS Core apk
▶ Visit https://appgallery.cloud.huawei.com/appdl/C10414141, to download and install Huawei Health apk
▶ Once you have downloaded and installed both Huawei HMS Core and Huawei Health App, simply open your Huawei Health App and follow the mentioned steps below to add a new Smart Health Monitoring Huawei/Honor Device:
Once done, go to the Device Tab again and select the paired Huawei Health Device to explore further options:
Do you have any other questions/queries related to connecting your Huawei Smart Watch/Fitness Band? Leave it in the comments below and I will try to give you an answer for your query
Very helpful, thanks.

PeakLens on HMS vs GMS

PeakLens on HMS vs GMS
PeakLens is an app that lets you explore mountains and peaks using AR. By pointing your camera at a mountain, you'll be able to learn more details about it. It's a good tool for anyone who loves to explore the outdoors and go mountain climbing. PeakLens uses artificial intelligence to estimate the position of nearby peaks. It is designed to be used with mountain peaks that are visible from where you're standing.
So how does the app PeakLens work on GMS as opposed to HMS? Let's take a quick look and find out.
PeakLens on GMS
On your first launch of PeakLens, you'll be taken through the quick setup process. The app requires several permissions from your GMS phone, including camera access, photo, and video recording access, and location permission. To begin using the app, you'll calibrate the compass by waving your phone in a "figure 8" motion.
Once the app is running, you'll be able to point your phone at visible mountain peaks and see their names and elevation. Your preferred unit of measurement can be changed in the settings section. The app works as it's supposed to, being a very simple way to gather quick information about your surrounding mountains.
{
"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"
}
PeakLens on HMS
Getting this app for your HMS phone is simple, as it's hosted on the Huawei AppGallery. During the setup process, the HMS version of the app was able to calibrate much quicker than the GMS version, finishing about 15 seconds before the GMS version. This is significant since the app requires you to calibrate it every time you use it. Those additional 15 seconds save you a lot of time.
Since the HMS version of the app is made primarily for the Chinese market, you'll find that the names of targeted mountain peaks are shown in Chinese. Right now there isn't an option to change the language in the settings menu of this app.
With PeakLens running on HMS, you can expect it to function just as well as the GMS option. The app does not suffer from the lack of GMS, but rather it benefits from better performance on HMS.
Interesting. But it need an option to change the language.

AppGallery Connect 10.5.11 is officially released

{
"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"
}
March 24, 2021 – AppGallery Connect 10.5.11 is officially released! You can now change the password rules for your users on the Settings tab page of Auth Service. Also, App Messaging now provides a Prediction condition to specify your message sending target. We also provide more new functions in version 10.5.11. Let's see what they are.​​1.Public​Web apps: Supported the function of restricting domain names or IP addresses that can access APIs enabled for your web app. View details​​2. Auth Service​Added the function of modifying required password complexity on the Settings tab page. View details​Released Android SDK 1.5.1.300, which supports account reauthentication and unified sign-in of HUAWEI GameCenter accounts and other frequently used game accounts. View details​​3. App Messaging​Added the filter Prediction for selecting sending targets. View details​
4. App Linking​Supported the function of configuring a custom preview page during the creation of a link of App Linking. View details​​5. APM​Released Android SDK 1.5.1.300, which supports the capability for analyzing slow launch details by event and screen loading experience analysis. View details​​6. Connect API​Changed the upper limit of an RPK package uploaded through the Publishing API from 10 MB to 20 MB, and supported PRK games that are compatible with PCs. View details​​7. Billing​Optimized several relevant UI strings and supported the free tier of the pay-as-you-go plan. View details​​8. App release​Changed the upper limit of an RPK package to be uploaded to 20 MB, added the function of configuring promotional videos and a mask layer for mobile quick apps, and added PCs as compatible devices for mobile quick apps. View details​​9. Service enabling​Optimized the service enabling experience on the Manage APIs tab page. View details​​10. App analytics​Added a download button to the Overview page and displayed comparison with similar apps on the Downloads & installs page. View details​​For details about our service updates, please refer to our documentation.​​In addition to these function updates, AppGallery Connect also unveiled its new logo and mobile app.​
The new logo was inspired by the angle brackets (<>) in coding. The two angle brackets are closely linked to form a square, representing the working relationship forged between developers and Huawei in building innovative apps.​
You can install the AppGallery Connect app (Android version) on your mobile device to get instant access to your app information, achieve instant user interaction, and learn about the latest on AppGallery Connect services. Just search for it on and download it from AppGallery.​
For more details:​· AppGallery Connect overview​· Our documentation to find the services you need​· Github to download demos and sample codes​· Stack Overflow to solve any integration problems​
Original link: https://forums.developer.huawei.com/forumPortal/en/topic/0202548982357190269

[HMS Core 6.0 Global Release] All-New Programming Tool in HMS Toolkit Makes HMS Core Integration More Efficient

HMS Core 6.0, which was released globally on July 15, offers SmartCoder as part of HMS Toolkit, an intelligent programming assistant that's designed to make HMS Core integration seamlessly efficient, for developing innovative apps easier than ever.
{
"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"
}
With SmartCoder, you'll be able to find official HMS Core resources (currently includes Account Kit, Ads Kit, Analytics Kit, IAP, and Push Kit) in Android Studio with incredible ease, without ever needing to switch between Android Studio and other interfaces – a document-free programming experience. This alone can boost development efficiency by more than 30%.
SmartCoder comes equipped with two functions: code auto-completion and smart search. Activating code auto-completion only requires you to enter hms in the editing area. The function enables you to complete coding quickly, thanks to the following advantages: completes single API or API call chains; provides floating windows to describe APIs in rich text, and quick documentation in pop-ups, listing code details as well as a short descriptions; allows you to edit auto-completed code snippets. Smart search provides instant access to a wealth of resources, including Kit (for kit-related documentation), Template (for integration steps), Snippet (for sample code snippets), and API (for official API references).
HMS Toolkit is an IDE plug-in that provides all the tools required for developing and releasing HMS Core-integrated apps in Android Studio. You can use it to create, code, convert, test, and release your apps, for a more productive and cost-effective development process.

Categories

Resources