Obtaining Data of Android Devices Between Google FCM and HUAWEI Push Kit - Huawei Developers

More information, you can visit HUAWEI Developer Forum and Medium.​
I work in operations for a mobile game. Recently, I was notified by the game's developers that HUAWEI Push Kit has been integrated into the Android version of the game. As we all know, the ability to push messages to users is a very important function. I proceeded to study some of the functions of Google Firebase Cloud Messaging (FCM) and HUAWEI Push Kit. Among the functions, I paid most attention to ones that had to do with data statistics. I have some interesting observations to share with you:
FCM: https://firebase.google.com/docs/cloud-messaging
HUAWEI Push Kit: https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/push-introduction
1. Data Report
I am responsible for querying, browsing, exporting, and analyzing push data on the operations console every day. Therefore, the first thing I did was to compare the push reports.
{
"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"
}
Compared to FCM, HUAWEI Push Kit also reports the number of sent messages, number of received messages, and number of times messages were taped. Statistical methods and data items may vary slightly however. But most importantly, HUAWEI Push Kit is able to meet my data requirements.
2. Custom Data
During analysis, reports alone cannot help me completely analyze all push data. In addition to task-level data analysis, I also require custom analysis and status analysis based on a single message. For a specific message, FCM and HUAWEI Push Kit use different data processing methods.
BigQuery of FCM
https://firebase.google.com/docs/cloud-messaging/understand-delivery#bigquery_data_export
BigQuery is a large online data warehouse provided by Google. It supports online data querying and statistical analysis based on the SQL statement. Push data generated in FCM can be imported to BigQuery synchronously to implement custom statistical analysis of push data and allow you to view the data in more dimensions. BigQuery is suitable when you want to collect and query a large amount of data due to its fast processing and low maintenance costs.
No server is required either.
It is free of charge to export data from FCM, but I will be charged of using BigQuery.
HUAWEI message receipt:
https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/push-receipt
After sending a message to a user device, HUAWEI Push Kit sends the message delivery status to your app server via a message receipt. Surprisingly, I discovered that the message receipt information is sent in real time.
A server, however, must be set up to receive receipt data.
The message receipt function is free of charge.
(Comments)
BigQuery is widely used and is not described here. Although HUAWEI Push Kit does not provide the same capabilities as BigQuery, it provides message receipts, which tell you the status of each message in real time and solve some of the following problems in certain scenarios:
1. Detecting problems with push messages in a timely manner: When an error occurs in a push message, I can discover this immediately since the message sending status is obtained in real time. This reduces the impact of the error.
2. Replacing SMS messages: At present, when I send a message that must be reached to a user, I require an SMS message of a carrier, which results in high costs. By using the message receipt, I can determine whether the message is received based on the receipt, which, to some extent, reduces the SMS messaging costs for some users.
3. Real-time effect analysis: Push data can be collected in a timely manner. For some important messages, I can obtain real-time push data and adjust push policies in a timely manner.
The message receipt provided by HUAWEI Push Kit is very useful in scenarios where we need to know message sending results in real time.
3. Conclusion
In conclusion, it is important for us to select the method most suitable for our specific product operations scenario.

Related

HUAWEI AppGallery Connect Service White Paper: Tips to Help You Succeed

{
"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"
}
Still seeking ways to efficiently realize your brilliant product idea? Worried about losing users as they are tired of complex user authentication steps, large app sizes, and frequent app crashes? Struggling to retain your users? That's where HUAWEI Gallery Connect comes into the picture to solve your problems and help you gain business success more easily.
It's a one-stop open platform that covers the entire app lifecycle, from innovation, to development, distribution, operation, and analysis. You can find out more by reading our HUAWEI AppGallery Connect Service White Paper.
Introduction
(1) Team Account
Sharing one account with all permissions among multiple team members increases your risk of a data breach.
That's not a problem with your team account. You can invite everyone you need to the team, including financial, R&D, and operation personnel, and assign only required permissions accordingly, so your data stays secure.
(2) Auth Service
Most apps need to authenticate users before they can provide certain functions, but building a user authentication system is challenging and costly.
With Auth Service, you can quickly build a secure and reliable user authentication system. Authentication capabilities are provided as services, and with just a little O&M, you can assemble all the services you need in your app.
(3) Remote Configuration
Want to make quick changes to how your app works and looks without the hassle of requiring user updates?Want to customize your app works and looks without the hassle of requiring user updates?
With Remote Configuration, you can limit configuration updates to users who meet specific conditions (such as their version, OS, and country) and tailor changes to each group.
(4) A/B Testing
Not sure what content to go with?
With A/B Testing, you can simultaneously run up to 50 experiments on a single app, and test your UI design, in-app content, and functions. By comparing detailed performance metrics, you can quickly decide what works best.
(5) App Linking
Finding it harder and harder to acquire new users and keep your existing users active?
App Linking generates links that direct people straight to your in-app content. If someone who hasn't installed your app taps the link, they'll be redirected to HUAWEI AppGallery where they'll be instructed to download your app. Once that's done, they're taken to your shared content.
(6) HUAWEI Analysis
Want to see how your app's performance compares to your competitors?
HUAWEI Analysis analyzes app data (such as distribution, operation, quality, and financial data) and user data (audience, behavior, event, or group) so you can see how your app is doing. Our benchmark data service, which will be released soon, helps you scientifically optimize versions, get insights into potential business opportunities, and make more accurate decisions."](5) App Linking
(7) Crash
If your app is always crashing, it's not going to get good reviews.
Use our Crash service. It doesn' t require any coding, and you can see real-time data reports up to the last hour. You' ll get notifications if there are any major issues, and you can prioritize crashes according to detailed indicators. This means problems can be quickly resolved based on the stack, device, and OS information provided.
(8) App Bundle
Is your app package so large it' s become a hassle for prospective users to download?
App Bundle can help. It tailors your package to various device models, and significantly reduces its size. App Bundle provides dynamic loading based on your users' requirements.
But that' s not all - we have 45 more services for you to explore! Visit HUAWEI Developers or scan the QR code below to get the full version of the HUAWEI AppGallery Connect Service White Paper.
Of course, it is woth trying HMS and Appgallery

How to impress users with HUAWEI Push Kit

Acquiring new users is getting more and more expensive?
Activating users is getting harder every time?
The user is not aware of ongoing promotional activities?
No worries, Push Kit can help you solve these problems​What is Push kit?
HUAWEI Push Kit is a messaging service provided by Huawei for developers. It establishes a communication channel between cloud and devices. By using HUAWEI Push Kit, developers can send the latest messages to users. This helps developers to maintain a close relationship with users and increase user awareness as well as activity. The following graphic shows the process of sending messages from the cloud to a device. Users can tap on the notification message to open an app, web page, or a specific screen in the app. The Huawei push Kit is the preferred way to reach users.
{
"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"
}
Why is it preferred way to reach user?
Reliable
Push messages are often lost or invalid? The Push Kit has a large system-level channel to send 10 million messages per second, this helps applications to push quickly. More than that, the online reach rate of Push Kit is up to 99%, which can ensure that messages are effectively delivered to users. At present, the Push Kit covers over 170 countries and regions around the world, which allows the application to push notification comprehensively with strong support.
Precise
Push messages don’t reach the targeted users? The Push Kit satisfies the diverse needs of developers, to help applications send messages to users accurately. For example, it can push different events or activity message to specific user groups based on specific topics. In addition it can push a restaurant recommendation message to users who like food or are a travelling suggestion based on user behaviour. In order to save time it is possible to set push tasks in advance and push automatically at a scheduled time. The Push Kit allows developers to manage the operational activities of their application more convenient.
Rich formats
Worried about the unattractive content? The Huawei Push Kit supports customized message-styles, this increases operational efficiency. Examples for customization are short or long text styles as well as multiple notification icons.
Real-time feedback
Confused about analyzing the push effect and its optimization? With real-time feedback, the application can obtain the loss rate of the push messages instantly. Developers can accurately know who did not receive push messages, then formulate a re-marketing strategy for the users to create a closed marketing loop.
Convenient Operation
It is difficult to complete all refinement operations without spending high amounts of resources. The Push Kit has two operation modes: One is to use Huawei's powerful console in AGC (AppGallery Connect). In this console, you can perform task management, classification of users, formulate push plans or view analysis reports to complete refined operation. The second is the developer's operation console which integrates the Huawei push server to meet the needs of personalized operation management.
Multi-language Display
The message needs to be adapted to different countries and languages? It is time-efficient for developers that the Push Kit supports multi-language message displaying. The system automatically reads the content of the corresponding field in the application and transforms it to the language setting of the users' system, this increases attractivity for users significantly.
How to integrate
The Huawei Push Kit is easy to access. Before developing an app, you need to register and complete the identity verification on our dedicated HUAWEI Developer . Afterwards, you can develop your app. Once the development is completed, download the Checklist of Push Kit and check everything on the list before release.
Huawei Developers provides one-stop development guides and technical support, covering the entire lifecycle of an application.
Visit Huawei Developers to acquire more information.
If you have any question about the capability of Huawei, go to HUAWEI Developer Forum to get the answer.

Push Kit Helps You Perform Refined Operations for Game Users

{
"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"
}
Driven by increasingly fierce competition, refined operations for game users is becoming an inevitable trend, in which pushing messages will play an important role. Thanks to Push Kit, we can provide you with a solution that will help you efficiently implement refined operations using the kit's capabilities.
Generally, messages are sent in the following scenarios for game user operations:
(1)Recommending discounted in-app products to new and existing users, encouraging them to make a purchase.
(2)Sending messages relating to social activities such as a friend coming online, friend invitations, and game ranking changes, which improves user participation in games.
(3)Notifying users of changes in in-game ranking, bonus points, gold coins, and in-game resources.
(4)Pushing personalized messages, such as sending gift packages to a user on their birthday or sending messages about special holiday activities.
Once you know when you want to push messages to users, Push Kit then provides the following functions to help you perform refined operations:
1. Scheduled Messaging – Message Pushing at Just the Right Times
Mobile gamers must maintain a high level of concentration while gaming, and therefore often choose to game when they have free time such as after meals or before going to bed – these are the best times to push messages to them. With scheduled messaging, you can set push tasks in advance and make sure that they are executed on time, which helps you implement your operations strategies, and maximize user activity.
2. Subscription – Precise Message Pushing, with In-Depth Insight into Players' Preferences
Players' interests tends to change as they progress through the game, and therefore it is important to change the content of your push messages accordingly. Thanks to Push Kit's subscription function, you can now precisely push messages tailored to game stages, payment habits, and player interests, ensuring that the pushed content is suitable for every user.
3. A/B Testing – Message Content Based on Test User Feedback
With A/B testing, you can use test user feedback to select messages with the best performance, and push them out to targeted audiences.
4. Engaging Emojis – Enriching Message Content, for a Higher Tap-Through Rate
You can add emojis to messages to attract more players and send your game's tap-through rate soaring through the roof.
Integration of Push Kit
Since the Cocos game engine has integrated Push Kit, you can click the following link to complete the integration process:
>> Integrating Push Kit using Cocos
>> HUAWEI Push Kit official website
If you encounter any problems while using the service or have any questions, you can send logs and submit tickets online so that our support personnel can provide you with assistance. You can also join our dedicated section on Stack Overflow
We are looking forward to your participation!

How to Improve User Activity and Conversion Through Scenario-specific Precise Targeting

Precise targeting of users is very important when you release new product features or organize marketing activities. Precise targeting, however, is not a simple process. For example, how do you push messages that users are interested in without disturbing them, divide users into groups and push messages accordingly, and trigger message sending based on users' behavior and interests?
HUAWEI Analytics Kit, along with App Messaging, can help answer these questions.
What are HUAWEI Analytics Kit and App Messaging?
HUAWEI Analytics Kit is a free-to-use data analysis service for app operations personnel to track how users behave in apps and facilitate precise data-driven operations. Applicable to multiple platforms such as Android, iOS, and web, and various types of devices such as mobile phones and tablets, it can automatically generate more than 10 types of analysis reports based on users' behavior events.
{
"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 triggers in-app messages in specific scenarios according to users' behavior events. It provides a large selection of templates for message display, including pop-ups, banners, and images, and supports custom formats with a variety of configurable message elements, encompassing images, colors, content, buttons, and redirections.
Message recipients vary according to dimensions, including the app version, system version, language, country or region, audience generated by HUAWEI Analytics Kit, and user attribute. App Messaging can help you enhance user loyalty for sustainable growth.
Examples of scenarios where HUAWEI Analytics Kit and App Messaging are applicable
Example 1: The funnel analysis function of HUAWEI Analytics Kit was used for a game app, and it was discovered that the pass rate of the fourth level of the game was far lower than that of previous ones. To prevent users from churning, the operations team decided to push in-app messages about gift packs that could help pass the fourth level to players who failed to pass this level more than twice, so as to encourage the players to continue trying and therefore reducing the churn rate.
In addition, when new players complete a task designed for beginners, a message about gift packs for new players can be pushed to them to help enhance their interest in the game and improve user retention.
Example 2: Through HUAWEI Analytics Kit's retention analysis and audience analysis functions, the operations team of an online education app found that users who added courses to favorites were more likely to be retained than others. Therefore, to enhance the user retention rate, the operations team decided to push a message that encouraged users to add the course they have joined to favorites.
Moreover, for e-commerce apps, messages about discounts and stock shortage can also be automatically pushed to users after they add a product to the shopping cart but have not paid, in order to improve the payment rate.
It takes you only 5 minutes to integrate HUAWEI Analytics Kit, which helps you achieve scenario-specific precise targeting and improve the conversion rate of active users.
Integration guide:
Android
iOS
Web
Sample code:
Android
iOS
Web
If you encounter any problems during the integration, you can submit a ticket online.
We look forward to your participation!

[FAQs] Applying for the Health Kit Service

HMS Core Health Kit provides app developers with access to atomic data. By calling its APIs, your app will be able to read and write users' health and activity data, after obtaining users' consent.
However, before your app is officially released, that is, in the development and test phases, a maximum of 100 users may use your app. This limit can be removed by applying for verification from Health Kit. Here I have listed some problems you may encounter during the application, as well as their solutions. I hope you find them helpful.
How long will it take for my application to be reviewed?​Answer: 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 workdays. Please make sure you submit the correct materials for the review, to avoid any delays.
I have passed verification, but I can only query the data of a limited number of users. Why?​Answer: Due to data caching, the approved scopes will take some time to take effect. Please wait for 24 hours after you have been verified, and then try again. Make sure that you reserve enough time for the approved scopes to take effect, so that your app can be released as scheduled.
If the problem persists, refer to this Error Code.
The proof that I submitted during the application was rejected. Why?​Answer: When submitting an application for verification, fill in the App Release Checklist, and make sure that the proof you provide meets the criteria specified in the checklist.
Let's look at some common reasons why some forms of proof may be rejected.
App introduction video
Make sure that the video starts when your app is opened, so that Huawei can check whether the app name matches the one provided in the application.
Make sure that the video demonstrates how to perform basic operations, like granting the app authorizations, and accessing user data.
Make sure that the video demonstrates the privacy policy, in which the developer name must be identical to the one provided in the application.
Video demonstrating the user authorization
Make sure that the app name and app icon on the authorization screen are consistent with those provided in the application.
Make sure that the read/write scopes displayed on the authorization screen are consistent with those provided in the application. Please do not apply for scopes you are not going to use in your app.
If you are developing a mobile app, make sure that the authorization screen is properly displayed, that is, the parameter display is set to touch. For details, please refer to Authentication.
Video integrity
Make sure that the video for each check item covers all of the content specified in the checklist's acceptance criteria. A common reason for rejection is that the video does not accurately cover the end-to-end operation process. For example, for check item 3.2 Canceling authorization, the video should begin by showing how the app can access user data properly before authorization is canceled, and then proceed to canceling the authorization. If your video only depicts how authorization is canceled, your application will be rejected.
Data accuracy
Make sure that you provide screenshots showing the data consistency between your app and the Huawei Health app, for each data type. If there is no screenshot provided for a certain data type, this data type will be considered not in use in your app, and will not be approved.
Data timeliness (for REST access only)
If your app accesses Health Kit via REST, make sure that your app allows users to flexibly synchronize data manually, and demonstrate this in the video. Data that is manually synchronized to your app should be consistent with the latest data in the Huawei Health app.
If your app uses the data subscription function of Health Kit, your app should obtain the latest data from Huawei Health in real time, and this process also needs to be shown in the video.
Other documents
Provide other documents as required, for example, countries/regions where your app is to be released, list of scopes (including scopes in the application and the already approved ones), and more.
These are only some of the most common problems that you may encounter during the verification stage. You can check the App Release Checklist after selecting the Health Kit card on HUAWEI Developers for more information.
{
"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 should I do if my application was rejected because the logo used was not acceptable?​Answer: Check the HUAWEI Health Guideline and ensure your app complies with these guidelines when using the Huawei Health logo.
Please stay tuned for the latest HUAWEI Developers news and download the latest resources.
As an individual developer, can I apply for formal scopes?​Answer: Individual developers cannot apply for formal scopes by applying for verification. A maximum of 100 users can be invited to use your app. This can only be removed by applying for a new HUAWEI ID, registering as an enterprise developer, and then applying for the Health Kit service.
Please note that advanced user data (such as heart rate, sleep, blood pressure, blood glucose, and SpO2 data) is not open to individual developers. To access advanced user data, create a HUAWEI ID and register as an enterprise developer before applying for access to Health Kit.
References​HMS Core Health Kit
Developer Guide
FAQs About Accessing Health Kit

Categories

Resources