HMS vs. GMS- Transferring Files with Nearby Service
As a part of the HMS service suite for developers, Huawei offers Nearby Service. This service takes advantage of WiFi, Cellular and Bluetooth connections to provide users with scenario-based data transmission. This is what developers use to allow their users to conveniently interact with people and things nearby. Huawei uses its proprietary nStack technology to enable high-performance communication over a short distance. This allows for fast file transfers, communication, and collaboration.
One of the primary functions of nearby services is to allow the transfer of large files to another phone. This doesn't require any sort of internet connection, as your phone will be able to use WiFi to directly connect to the nearby device. All transfers are made through an https connection, ensuring a secure transfer.
Huawei's comprehensive development guides can help you implement nearby service into your app, so your users can take advantage of local multiplayer gaming. These guides are easy to understand, and will quickly get you headed in the right direction for this service.
{
"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"
}
If you're looking for inspiration on how nearby service can be used in your app, you should look at Huawei's sample codes. These sample codes will show you different ways in which this service can be used to improve your app.
Huawei's HMS APIs are designed to provide you with a simple development process. You will not have to deal with underlying networking details, and you can just focus on your app's development.
HMS Nearby Services vs. GMS Nearby Connection
When using Huawei's nearby service for file transfer, users are able to achieve up to 50mbps file transfer speed. This is faster than the GMS nearby connect service, which will max out at 40mbps. This faster data transfer speed is made possible by Huawei's proprietary nStack technology.
Faster speeds mean that the HMS solution will be better for creating apps that allow users to transfer large file sizes. Sending movies, music, documents, or other large files will now be as easy as transferring them to a nearby phone. A good example of an app that benefits from nearby service is Zapya. This popular file transfer app uses HMS nearby services to let you send large files to phones that are close by. Using the app, you'll be able to transfer a 3GB file in only 1 minute. You can rely on efficient and secure file transfers.
File transfer speed isn't the only area where HMS is able to out-perform GMS. The node discovery speeds also come into play here. This is where a user will scan for a nearby phone, and wait for results. Nearby service has faster discovery time based on Huawei-developed protocols.
Read more: How to use HUAWEI Nearby Service to Develop a Business Card Exchange Function for APP
Related
If you watched the webcast of the Huawei Developer Conference on May 27, 2020, you will have got a glimpse of the future. Smart devices are seeing unprecedented growth as the number of connected devices per person continues to rise. But this creates challenges too. Consumers can become frustrated if their many devices are not compatible with one another; and developers have to produce and maintain different app versions for all of these different devices.
In particular, the process of transferring files between devices has historically been needlessly complex, requiring all sorts of data cables and other external devices such as memory cards. This is particularly true of walled garden systems.
This isn't a problem for the iFLYTEK smart office book though, thanks to HUAWEI Share Kit.
The iFLYTEK smart office book is designed to send and receive files across a range of situations.
As its E Ink display has a low refresh rate, and is unable to take photos, users may need to insert images from other devices.
They may also want to transfer private files, such as blog entries, from the smart office book to their phones, without having to worry about security.
Or they may want to quickly sync online articles from their phone to the office book.
But how to make these file transfers? Using a memory card, OTG cable, or Type-C cable is a hassle; transfers over Bluetooth (BLE or SPP) work, but are frustratingly slow; and using Wi-Fi puts data at risk, with files vulnerable to attacks or transfer failures when the network connection is unstable.
Fortunately, iFLYTEK has optimized file transfers by incorporating Huawei's cross-device transmission solution – HUAWEI Share Kit. "We have tried other solutions in the past, but were always met with high device thresholds, lengthy development cycles, low stability, and slow transmission speeds. HUAWEI Share Kit is the perfect solution. It has a low integration threshold and delivers high transmission speeds." An executive of iFLYTEK was greatly impressed by HUAWEI Share Kit.
{
"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"
}
According to test data, the smart office book transmits files at 1 Mbps over Bluetooth, compared to up to 10 Mbps when HUAWEI Share Kit is integrated. That means it takes 800s to transfer a 100 MB file over Bluetooth, but only 10s with HUAWEI Share Kit. This is thanks to Huawei's own channel capability negotiation and dynamic channel adjustment technologies.
Process for integrating HUAWEI Share Kit for smart office books
As you can see from the diagram above, integrating HUAWEI Share Kit is incredibly straightforward.
For more HMS capabilities and HUAWEI developers' stories, please visit DevHub @ HUAWEI Developer Forum.
You can obtain the SDK at: https://developer.huawei.com/consumer/en/doc/development/connectivity-Library/share-sdk
For more information about the HUAWEI Share Kit, go to https://developer.huawei.com/consumer/en/share-kit.
The increased accessibility of smart devices has led to a dramatic increase in the number of connected devices per person. However, the presence of different operating systems has led to challenges in ensuring the broad compatibility of features across devices. Developers have to devote inordinate amounts of time and money on creating and maintaining different versions for each operating system. To address this, Huawei has proposed a revolutionary solution, in which distributed technology facilitates broad-based compatibility within an all-encompassing "1+8+N" framework, with the goal of providing users with seamless collaborative features.
The HUAWEI OneHop Kit forms a key pillar in this ecosystem, utilizing NFC to facilitate easier cross-app and cross-device data transfer, helping make cross-device functionality the new norm. The OneHop Kit has been opened to device manufacturers, and will soon be supported on a wide range of smart device products. Following the release of Huawei OneHop Kit on the HUAWEI Developer website in 2019, many app makers and device manufacturers expressed enthusiasm at the opportunity to integrate the kit.
Sparkling New Mobile Office Experience, with Futuristic Collaborations Between Huawei Phones and Laptops. The OneHop Kit revolutionizes the transfer of video and image files, freeing users having to rely on third-party apps and devices. Simply select the file you wish to transfer, tap your phone against the NFC tag on the computer, and the file will be transferred to your laptop in the blink of an eye.
{
"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"
}
Smooth Large Screen Projection with Huawei Phones and Laptops. With these two devices, you can project content at will, regardless of the presence of a Wi-Fi network, and with no need to go through a pairing process. Simply tap the phone against the NFC tag on the remote control, and the phone screen will be projected to the smart TV in mere seconds. Projected imagery is remarkably fluid, vivid, and responsive.
Video Continuity with Huawei Phones and Laptops. After an app has integrated OneHop Kit into their apps, it will be capable of transferring and syncing video from one device to another, with astounding ease. Furthermore, users do not have to configure the devices, nor sync the data manually.
Huawei aims to build a fully connected world, with its all-encompassing "1+8+N" framework as a springboard for versatile, and fluid cross-device interactions. Stay tuned for more information about Huawei's cutting-edge connected solutions.
Scan the QR code to visit the HUAWEI Developers website to obtain the development guide and its corresponding SDK.
HMS vs. GMS- Gaming with Nearby Service
As a part of the HMS service suite for developers, Huawei offers Nearby Service. This service takes advantage of WiFi, Cellular and Bluetooth connections to provide users with scenario-based data transmission. This is what developers use to allow their users to conveniently interact with people and things nearby. Huawei uses its proprietary nStack technology to enable high-performance communication over a short distance. This allows for fast files transfers, communication, and collaboration.
How Nearby Service Enhances the Gaming Experience
To play games with a friend remotely, your phone will use your standard internet connection. If you want to play a game with a friend that is within your vicinity, nearby services can use a direct connection to make this a much better experience.
For users without cellular or WiFi data connections, they'll be able to use nearby service to continue to enjoy multiplayer gaming.
Huawei's comprehensive development guides can help you implement nearby service into your app, so your users can take advantage of local multiplayer gaming. These guides are easy to understand, and will quickly get you headed in the right direction for this service.
{
"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"
}
If you're looking for inspiration on how nearby service can be used in your app, you should look at Huawei's sample codes. These sample codes will show you different ways in which this service can be used to improve your app.
Huawei's HMS APIs are designed to provide you with a simple development process. You will not have to deal with underlying networking details, and you can just focus on your app's development.
HMS Nearby Services vs. GMS Nearby Connection
With the development of Nearby Service, Huawei is able to provide a much faster and more reliable service than the GMS Nearby Connection. HMS offers a complete open-source solution with kits available for many different aspects of your app development. Huawei has a strong development team and dedicates a lot of resources to help developers implement their services.
Read more: How to use HUAWEI Nearby Service to Develop a Business Card Exchange Function for APP
The increased accessibility of smart devices has led to a dramatic increase in the number of connected devices per person. However, the presence of different operating systems has led to challenges in ensuring the broad compatibility of features across devices. Developers have to devote inordinate amounts of time and money on creating and maintaining different versions for each operating system. To address this, Huawei has proposed a revolutionary solution, in which distributed technology facilitates broad-based compatibility within an all-encompassing "1+8+N" framework, with the goal of providing users with seamless collaborative features.
The HUAWEI OneHop Kit forms a key pillar in this ecosystem, utilizing NFC to facilitate easier cross-app and cross-device data transfer, helping make cross-device functionality the new norm. The OneHop Kit has been opened to device manufacturers, and will soon be supported on a wide range of smart device products. Following the release of Huawei OneHop Kit on the HUAWEI Developer website in 2019, many app makers and device manufacturers expressed enthusiasm at the opportunity to integrate the kit.
Sparkling New Mobile Office Experience, with Futuristic Collaborations Between Huawei Phones and Laptops. The OneHop Kit revolutionizes the transfer of video and image files, freeing users having to rely on third-party apps and devices. Simply select the file you wish to transfer, tap your phone against the NFC tag on the computer, and the file will be transferred to your laptop in the blink of an eye.
{
"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"
}
Smooth Large Screen Projection with Huawei Phones and Laptops. With these two devices, you can project content at will, regardless of the presence of a Wi-Fi network, and with no need to go through a pairing process. Simply tap the phone against the NFC tag on the remote control, and the phone screen will be projected to the smart TV in mere seconds. Projected imagery is remarkably fluid, vivid, and responsive.
Video Continuity with Huawei Phones and Laptops. After an app has integrated OneHop Kit into their apps, it will be capable of transferring and syncing video from one device to another, with astounding ease. Furthermore, users do not have to configure the devices, nor sync the data manually.
Huawei aims to build a fully connected world, with its all-encompassing "1+8+N" framework as a springboard for versatile, and fluid cross-device interactions. Stay tuned for more information about Huawei's cutting-edge connected solutions.
Scan the QR code to visit the HUAWEI Developers website to obtain the development guide and its corresponding SDK.
For details about Huawei developers and HMS, visit the website.
https://forums.developer.huawei.com/forumPortal/en/home?fid=0101246461018590361
The Huawei Nearby Service, an important feature of HMS Core, provides your App with high-speed transmission capabilities over short distance without Internet based on technologies such as Bluetooth and Wi-Fi, and the transmission speed can be in excess of 60MBps.
Nearby Service allows you to share audio and video in the App, lets users bid farewell to the trouble of computer transfer and saves wasted traffic through Internet transmission or download.
And the open source simple APIs allow you to easily integrate the transmission function to enhance product competitiveness and user experience.
Benefits of HUAWEI Nearby Service
High-speed transmission: Utilizes Huawei-developed nStack X protocol stack to achieve a 30% higher transmission rate, in excess of 60MB/s.
Automatic network configuration: Selects the optimal network mode(Wi-Fi hotspot, Wi-Fi P2P, etc.), without the need for manual configuration.
Quick integration: File transmission APIs can be integrated with just two lines of code (please refer to the open source code below.)
Full Android platform support: All terminals running Android 5.0 or later are supported, with Windows and iOS coverage planned for the near future.
Success Stories
WlanPlay, a popular video player developed by iQIYI, provides users with high-quality video play and sharing experiences. With HUAWEI Nearby Service, WLanPlay greatly increases the transmission speed in excess of 60MBps and allow users to enjoy zero-traffic, high-speed audio and videos sharing function to enhance product competitiveness.
{
"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"
}
You can use the open source code to quickly integrate NearbyService by calling 2 APIs to achieve file transmission
If you need to customize the data transmission mode, please refer to the detailed API guidance:
Nearby Service - In-App Data Sharing and Messaging Services - HUAWEI Developer
Sample code for customized data transmission
If you have any needs or suggestions, please contact: [email protected]
Sherlock F said:
You can use the open source code to quickly integrate NearbyService by calling 2 APIs to achieve file transmission
Click to expand...
Click to collapse
Hi, Bro. The link of open source code in your article should be updated here. I have updated here. Open source code: https://github.com/HMS-Core/hms-nearby-demo/tree/master/NearbyFileTransfer