HarmonyOS Device Location, Geocoding and Reverse Geocoding Capabilities - Huawei Developers

Introduction
People take their mobile devices wherever they go. Mobile devices have become a necessity in people's daily routines, whether it be for looking at the weather forecast, browsing news, hailing a taxi, navigating, or recording data from a workout. All these activities are so much associated with the location services on mobile devices.
With the location awareness capability offered by HarmonyOS, mobile devices will be able to obtain real-time, accurate location data. Building location awareness into your application can also lead to a better contextual experience for application users.
Your application can call location-specific APIs to obtain the location information of a mobile device for offering location-based services such as drive navigation and motion track recording.
Working Principles
Location awareness is offered by the system as a basic service for applications. Depending on the service scenario, an application needs to initiate a location request to the system and stop the location request when the service scenario ends. In this process, the system reports the location information to the application on a real-time basis.
Limitations and Constraints
Your application can use the location function only after the user has granted the permission and turned on the function. If the location function is off, the system will not provide the location service for any application.
Since the location information is considered sensitive, your application still needs to obtain the location access permission from the user even if the user has turned on the location function. The system will provide the location service for your application only after it has been granted the permission to access the device location information.
Obtaining Device Location Information
Create View Layout
The view that we will do is very simple, we will only add four buttons to represent the request for the location of the device in with the different options that the system provides.
Countinue to Orignal Source..

ProManojKumar said:
Introduction
People take their mobile devices wherever they go. Mobile devices have become a necessity in people's daily routines, whether it be for looking at the weather forecast, browsing news, hailing a taxi, navigating, or recording data from a workout. All these activities are so much associated with the location services on mobile devices.
With the location awareness capability offered by HarmonyOS, mobile devices will be able to obtain real-time, accurate location data. Building location awareness into your application can also lead to a better contextual experience for application users.
Your application can call location-specific APIs to obtain the location information of a mobile device for offering location-based services such as drive navigation and motion track recording.
Working Principles
Location awareness is offered by the system as a basic service for applications. Depending on the service scenario, an application needs to initiate a location request to the system and stop the location request when the service scenario ends. In this process, the system reports the location information to the application on a real-time basis.
Limitations and Constraints
Your application can use the location function only after the user has granted the permission and turned on the function. If the location function is off, the system will not provide the location service for any application.
Since the location information is considered sensitive, your application still needs to obtain the location access permission from the user even if the user has turned on the location function. The system will provide the location service for your application only after it has been granted the permission to access the device location information.
Obtaining Device Location Information
Create View Layout
The view that we will do is very simple, we will only add four buttons to represent the request for the location of the device in with the different options that the system provides.
Countinue to Orignal Source..
Click to expand...
Click to collapse
is there any limitation?

Related

Sports Health App Back-End Keepalive Solution

The Health app collects statistics on various sensors, which depend on the hardware of the phone.
Android is implemented on top of the bottom layer. The hardware layer implementation varies with vendors, and the power saving mode varies with vendors. Therefore, it is difficult to collect data on multi-vendor devices.
Most of the Sports Health Apps want to be able to collect statistics on sports data in the background.
[Background keep-alive]: To make step count more accurate, the app wants to collect the user step count for a long time. The app wants to keep the user step count in the background of different brands of phones (live keep-alive) and continuously collect sensor data. However, the system may kill the user step count. As a result, the count is inaccurate.
Solution 1: HMS Integration Solution
If the data required by users is supported by Huawei HiHealth or Health Kit, the HMS can be integrated to solve the problem. Huawei HiHealth and Health kits can be used in the background of Huawei phones for a long time.
Huawei Push is integrated. The Push function can be used to receive messages when the app process is not running. CPs that have the requirement of pushing messages can be guided to access Push messages, for example, Eyecon.
Solution 2: Guide manual settings
Set manual instructions in the app to guide users to manually set keepalive (close battery optimization and allow background running).
Multiple Pedometer Apps have such settings, such as winwalk and sweatcoin.
You can get data from Huawei Health Kit.
Very useful thanks for sharing!

Travel Industry Report: An Effective Way to Boost User Stickiness

The large number of travel apps on the market makes it difficult to retain users. So, how to boost user stickiness and frequency of usage? You may be eager to know the answer.
Well, Analytics Kit 6.3.0 can answer this question. Recently, it has released travel industry analysis reports that show key data indicators related to travel, hotel booking, and other related services, providing key insight on user behavior and priorities.
1. Key Indicators for a Clear Overview of Operations Status
Data overview displays basic operations indicators, such as the numbers of new users, registered users, active users, and paying users, while also showing revenue indicators that are of most interest to you, like order quantity and revenue of flight tickets, train tickets, and hotel bookings, as well as total order trends. You can use this broad array of data to get a quick sense of which strategies to pursue.
* For reference only
2. Core Service Data Analysis for a Better User Experience
Users have different travel requirements. For example, family travelers tend to focus on parent-child services, travelers to another country prioritize quality and cost-effectiveness, whereas business travelers pay more attention to convenience and speed. You can use high-level analysis of travel and hotel data to design personalized products that appeal to specific types of users.
Travel analysis displays the trends of flight ticket purchases, train ticket purchases, and vehicle for hire orders, as well as user distribution by ticket type and service provider. This can help you recommend products based on user travel preferences, to offer a more professional level of service and efficiency.
* For reference only
Hotel analysis shows user travel requirements from dimensions such as hotel booking and revenue, distribution of booked hotel types, and popular booked hotels, so that you can recommend hotels that match precisely with individual users' preferences for types and locations.
* For reference only
3. Out-of-the-Box Event Tracking Templates
To further bolster event tracking efficiency, Analytics Kit also provides out-of-the-box event tracking templates for travel apps. Event tracking configuration can be done via coding, HMS Toolkit, or adding visual events. Event tracking mapping is also supported, which means that you can configure rules to map custom events to predefined events in Analytics Kit. After events are reported, you'll then be able to view industry analysis reports on the Industry analysis page.
* For reference only
4. Multi-Dimensional Data Analysis for Fine-Tuning Operations
To boost user stickiness and activity, you can use Analytics Kit for data analysis in multiple dimensions to drive more fine-tuning operations that optimize user experience. Thanks to functions like session path analysis and funnel analysis, you'll get a clear view of conversion paths, and then be able to determine appropriate incentives.
For instance, before a trip, a user will usually check the itinerary, reserve tickets or hotel rooms, and browse travel guides. Based on the user's destination of interest, you can boost user activity via methods like price drop notifications or packaged booking recommendations before purchase to promote the final conversion.
To learn more, click here to get the free trial for the demo, or visit our official website to access the development documents for Android, iOS, Web, and Quick App.

Analytics Kit 6.3.0: More Industries, More Reports

To provide you with a wealth of industry knowledge that helps digitalize your business, Analytics Kit 6.3.0 comes with reports on more industries.
Here's what's new:
l Added reports on four more industries, including securities, travel, language training, and exercise and health, as well as corresponding event tracking templates, for you to achieve precise operations.
l Added the page path analysis model, for you to quickly locate abnormal churn nodes.
l Added the function of viewing analysis reports using the AppGallery Connect app, for you to analyze data through a mobile device anytime and anywhere.
l Added SDKs for HarmonyOS and WeChat mini-programs, for you to analyze data in various scenarios.
l Added the event mapping capability to the intelligent data access function, for you to map custom events to predefined events.
Four More Industry Reports for Comprehensive Data Analysis
Analytics Kit 6.3.0 unlocks industry reports on securities, travel, exercise and health, and language training, which can be viewed through simple event tracking configuration using templates.
Securities industry analysis reports: They display your app's operations status from multiple aspects including data overview, trading, and news. By focusing on user experience and preferences, they can help you design marketing strategies for target users and scenarios.
Travel industry analysis reports: To help you boost the usage frequency and user stickiness of your app, they provide data indicators related to travel and hotel, so that you can offer one-stop services for a better user experience.
Exercise and health industry analysis reports: Consisting of data overview, payment analysis, behavior analysis, and community and after-sales data, they present comprehensive data to inform you of users' exercise habits and requirements, so that you can improve your app to enhance users' stickiness as well as willingness to pay, making your business unique and competitive.
Language training industry analysis reports: By displaying user preferences from various dimensions throughout the user lifecycle, they can help you identify what actions can be taken to drive business growth.
2. Page Path Analysis Model, for Key Insights into User Behavior
Analytics Kit 6.3.0 has added the page path analysis model, which takes each page as a conversion node. By focusing on abnormal pages with high churn rates, path analysis can deepen your understanding of user requirements for page redirection.
3. Data Analysis Reports at Your Service Anytime and Anywhere
You can view various data analysis reports through the AppGallery Connect app on mobile devices. As the data on mobile devices is synchronized with that on the web page, and displayed in a proper manner through adaptation, you can view data anytime and anywhere to detect abnormalities and formulate targeted plans.
4. SDKs for HarmonyOS and WeChat Mini-Programs, for Data Analysis on More Mobile Devices
By integrating the SDKs for HarmonyOS and WeChat mini-programs, you can analyze data for a range of scenarios. If your apps in the same project apply to multiple platforms, you can filter data by platform for a general overview of your project or detailed data of a specific app. You can also compare the user behavior of different platforms and apps with the comparison capability.
5. Event Mapping, Streamlining the Event Tracking Configuration
Intelligent data access has added the event mapping capability, allowing you to map custom events to predefined events of Analytics Kit, streamlining the event tracking configuration.
In addition, Analytics Kit 6.3.0 has optimized modules such as Event analysis, Audience analysis, and Intelligent data access, to support smoother data analysis.
To learn more about the updates, refer to the version change history. Click here to get the free trial for the demo, or visit our official website to access the development documents for Android, iOS, Web, Quick App, HarmonyOS, and WeChat Mini-Program.
Does it give domain-specific data?
Basavaraj.navi said:
Does it give domain-specific data?
Click to expand...
Click to collapse
Hi~
At present, we provide industry reports for different industries.Which domain-specific data are you referring to?

Is There A Android Application For Testing / Viewing Location Data?

Currently on the hunt for a android application that can display the devices location information on screen. Ideally the application will be able to display all the different location methods at once as there are several methods and API's available.
Google Location Services API
android.location
Possible ways of locating a device
GPS
Wi-Fi
Cell ID
A-GPS
More?
If anyone has any suggestions of a application that could do this please let me know! Root only apps are also welcome but unnecessary for location viewing.
Hi, I use www.ipstack.com. ipstack offers a powerful, real-time IP to geolocation API capable of looking up accurate location data and assessing security threats originating from risky IP addresses. Results are delivered within milliseconds in JSON or XML format. Using the ipstack API you will be able to locate website visitors at first glance and adjust your user experience and application accordingly. ipstack API services enable you to locate and identify website visitors at a stage before any data is entered into your system.
ShubhamChauhan said:
Hi, I use www.ipstack.com. ipstack offers a powerful, real-time IP to geolocation API capable of looking up accurate location data and assessing security threats originating from risky IP addresses. Results are delivered within milliseconds in JSON or XML format. Using the ipstack API you will be able to locate website visitors at first glance and adjust your user experience and application accordingly. ipstack API services enable you to locate and identify website visitors at a stage before any data is entered into your system.
Click to expand...
Click to collapse
Thanks for the response. Seems like you are affiliated with the company that you are promoting. Please make sure to note this in future comments.

[FAQs] Applying for Health Kit Scopes

HMS Core Health Kit unlocks atomic data for developers. After obtaining user consent, your app will then be able to read, add, modify, or delete users' health and activity data by calling Health Kit APIs. To begin with, you will need to first apply for test scopes from Health Kit, to access this data before your app is released. Here I have listed some problems that I have encountered during the application, as well as their solutions. I hope you find this helpful.
After I send an application to Health Kit, how long will it take for my application to be reviewed?​The review takes about 15 workdays, and you will be notified of the result via SMS and email. If your application is rejected, modify your materials according to the feedback, and then submit your application again. The second review will take another 15 working days. Please check your materials carefully so that your application can pass the review as soon as possible.
Can I apply for accessing Health Kit as an individual developer?​According to the privacy policy, individual developers can apply for accessing Health Kit to read/write basic user data (such as step count, calories, and distance) if your app is intended for short-term research, development, and testing purposes. But please note the following:
During application, you have to specify when your project or testing ends. Relevant personnel will revoke the scopes in due time.
You do not have access to advanced user data (such as heart rate, sleep, blood pressure, blood glucose, SpO2, and other health data).
After your application and personal credit investigations have been reviewed, only the first 100 users will be able to access the Health Kit service that your app integrates.
This restriction cannot be removed by applying for verification.
This can only be removed by applying for the HUAWEI ID service again, registering as an enterprise developer, and then applying for Health Kit service.
What is different between the data scopes opened to enterprise developers and individual developers?​The following lists the respective data scopes available for individual and enterprise developers.
Individual developers: height, weight, step count, distance, calories, medium- and high-intensity, altitude, activity record summary, activity record details (speed, cadence, exercise heart rate, altitude, running form, jump, power, and resistance), personal information (gender, date of birth, height, and weight) and real-time activity data.
Enterprise developers: In addition to the basic data scopes opened to individual developers, enterprise developers also have access to location data and the following advanced data: heart rate, stress, sleep, blood glucose, blood pressure, SpO2, body temperature, ECG, VO2 max, reproductive health, real-time heart data, and device information.
What are the requirements for enterprise developers to access Health Kit?​If you only apply for accessing basic user data, the paid-up capital of your company must be larger than or equal to CNY 1 million; if you apply for accessing advanced user data, the paid-up capital of your company must be larger than or equal to CNY 5 million. What's more, Huawei will take your company's year of establishment and associated risks into consideration.
If you have any questions, contact [email protected] for assistance.
What are the requirements for filling in the application materials?​Specific requirements are as follows:
Fill in every sheet marked with "Mandatory".
In the Data Usage sheet, specify each data read/write scope you are going to apply for, and make sure that these scopes are the same as the actual scopes to be displayed and granted by users in your app.
What does it mean if the applicant is inconsistent?​The developer name used for real-name verification on HUAWEI Developers must be the same as that of the entity operating the app. Please verify that the developer name is consistent when applying for the test scopes. Otherwise, your application will be rejected.
What should I do if my application was rejected because of incorrect logo usage?​Make sure that your app uses the Huawei Health logo in compliance with HUAWEI Health Guideline. You can click here to download the guideline and the logo in PNG format.
Please stay tuned for the latest HUAWEI Developers news and download the latest resources.
Why can't I find user data after my application has been approved?​Due to data caching, do not perform the test until 24 hours after the test scopes have been granted.
If the problem persists, troubleshoot by referring to Error Code.
References​HMS Core Health Kit
Development Guide
More FAQs About Accessing Health Kit

Categories

Resources