Huawei APM Network Analysis displaying the number of sessions as 0? Why?! - Huawei Developers

The APM service from AppGallery Connect can monitor and test the performance of apps running on devices and provide readable reports in real-time, which is a very practical feature.
Once integrated the analysis reports are very comprehensive, especially the ANR analysis and Network analysis reports.
However, there is one problem that many people find, which is that the number of sessions recorded in the network analysis appears as 0 even though the number of network requests, which appears as Samples in the following figure, was over one hundred.
{
"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"
}
So why might this be the case? Is there something going wrong? A bug? What should we do about it?! Well, let’s start by understanding the sessions.
A session is an information interchange between the user and app. For example, when the user moves the app from the background to the foreground, a new session is generated.
To prevent frequently collected sessions from consuming too much traffic and CPU resources, APM performs sampling control on sessions.
Currently, the default session sampling rate is 1%.
The default session sampling rate is the preferred method when used online. But you can also increase it in the offline test by using the following code:
XML:
<application>
<!-- Set this value to '2.0', meaning only 2% of sessions can sample cpu and memory. -->
<meta-data
android:name="sessions_sampling_percentage"
android:value="2.0" />
</application>
Click here to view more details about how to set the session sampling rate.
So importantly not every session is sent back for reporting, and by default, it’s a very small number (1%). If you find that your app is getting a very low number of sessions, which is particularly the case during testing when it might just be running on one device increasing the sample percentage will help make sure you are getting sessions results in the reports.
If you want to learn more about APM, please refer to:
APM Development Guide
and
APM API Reference

Related

[APP] Smart Wear Speed: Show current speed limit on your watch with alerts

{
"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"
}
Smart Wear Speed
https://play.google.com/store/apps/details?id=com.preiss.speed.smartwearapp
This application will allow you to display two widgets on your watch:
• Current Speed
Show your current speed.
If your speed is greater than the current speed limit it will be shown in red.
The progress ring goes from green to red while getting close to the limit.
If the speed limit is unknown it's grey.
• Current Speed Limit
The application is trying to get the speed limit for OpenStreetMap.
If the value is not available the widget will show "__" in red.
You can manually add a speed limit for the current road:
Click on one of the widgets to open the "New Speed Limit" dialogue.
Try to open this when you are close to the road speed limit: your current speed is used to set the speed limit value.
Once the dialogue is open you can adjust the speed by swiping up or down before the end of the countdown.
Swipe right to dismiss.
(in case of error you can start again, it will update value)
The value will be saved and will be used each time you drive on this road again.
You can add the speed limit on the openstreetmap website too.
It's really easy. See Google+ community for information.
Use the phone application to modify the widgets behavior and look.
You can add alerts triggered at speed % of the current speed limit.
Long Click on widget to close.
Launching app on watch will toggle widgets on/off.
Disclaimer: All features will stay free during the development phase. Some of them might eventually become premium
https://play.google.com/store/apps/details?id=com.preiss.speed.smartwearapp
How to easily check if speed limits are provided in your area
How to easily check if speed limits are provided in your area
http://product.itoworld.com/map/125
How to Add missing Speed Limit on OpenStreetMap
How to Add missing Speed Limit on OpenStreetMap
Some road around you might not have the speed limit information entered in OpenStreetMap.
Updating the OpenStreetdata is very easy and fast.
You just need to access
https://www.openstreetmap.org/
create a user account.
Then locate the road you want to modify and click on modify.
You just have to enter the speed limit information in the right pane.
“et voilà!”
Now everybody can benefit from this.
Updating multiple roads is just a matter of seconds.

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 Does Push Kit Help You Push Personalized Messages to Users?

As a developer of social communication apps, you'll know that people are bombarded with social media messages all the time, so it's never been more important to cut through the noise by targeting users with prompt, accurate, and relevant messages.
HUAWEI Push Kit is a stable, efficient, and precise push channel which enables your apps to push personalized messages to huge groups of users at the same time, so you can engage your audience and keep them coming back for more.
1. Reliable, On-time Messages
By establishing a stable and system-level persistent connection, Push Kit sends messages in real time, whether your app is open or not. What's more, if users are offline, Push Kit will cache messages until they are back online before sending the messages. This enables the kit to hit delivery rates of 99% or higher. Push Kit also provides a system-level channel which you can use to send tens of millions messages every second.
2. Emojis
With Push Kit, you can add emojis to your messages, to better convey your brand tone-of-voice.
For example, you can add an emoji next to message "XX has looked at your photos". This will keep your app relevant as a place where conversations happen.
{
"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"
}
3. Audience Segmentation
With Push Kit's audience segmentation function, you can segment audiences based on their user attributes, behavior, or custom tags you've set, and push messages to them. For example, you could create an audience of female users who have browsed their horoscope within the latest 7 days, and push relevant messages to them based on their star sign.
Easy Integration
Integrating Push Kit is really straightforward. We'll provide you with a tool you can use to integrate the kit into your app within half a day, as well as sample code that you can reuse in your app server.
If you run into any problems, we have a dedicated technical support team who can help you with the integration process.
Click>>Find out more on our official website
Click>>Access guide
Click>>Technical support

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.

HUAWEI Prediction | Facilitating User Retention

User retention is one of the most important factors you need to consider in your operations. A high user retention rate is a prerequisite for monetization, and is also an important way of defining an app's value. With ever increasing user expectations and competition, user retention has become a major challenge for every kind of app.
To resolve the issue of low user retention, marketing budgets have continued to increase to try to pull in new users. However, the downside to this is that non-organic users are even harder to retain, as such users are not actively seeking to use the app. A better solution would be to accurately predict user churn and take the right actions accordingly.
Luckily, Push Kit and HUAWEI Prediction allow you to do just that.
What Can Push Kit and HUAWEI Prediction Offer You?
Powered by machine learning technologies, HUAWEI Prediction precisely predicts the behavior of specific audiences based on user behavior and attribute data reported from Analytics Kit. Audiences are further divided into several sub-audiences, according to their behavior as predicted by the service. This allows you to take targeted measures to increase user retention and conversion.
{
"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"
}
Push Kit is a messaging service that establishes a messaging channel from the cloud to devices. By integrating Push Kit, you can send messages to your app on users' devices in real time. This helps you maintain closer ties with users and increases user awareness of and engagement with your apps.
Push Kit and HUAWEI Prediction Example Usage Scenario
The operations team of a game planned to increase the engagement of users at high risk of churning in the next 7 days, as predicted by HUAWEI Prediction, but who still occasionally opened the app in the last 7 days.
With this information at hand, the app's operations team designed a time-limited event particularly for this audience, and used Push Kit to push messages for the event precisely to the audience.
Experience HUAWEI Prediction for yourself by going to AppGallery Connect > Grow > Prediction.
Click here to learn more about HUAWEI Prediction service.

Categories

Resources