目录

Obtaining Location Information

Location Kit provides location services using multiple positioning technologies, such as Global Navigation Satellite System (GNSS) positioning, cellular positioning, and WLAN/Bluetooth positioning. Cellular positioning and WLAN/Bluetooth positioning are collectively referred to as network positioning technologies hereinafter. With these positioning technologies, the location of a user device can be accurately determined whether the device is indoors or outdoors.

Working Principles

Location awareness is offered by the system as a basic service for atomic services. Depending on the service scenario, an atomic service 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 result to the atomic service on a real-time basis.

Constraints

Your atomic service 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 atomic service.

Since the location information is considered sensitive, your atomic service 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 atomic service only after it has been granted the permission to access the device location information.

Development Guide

Before using location capabilities provided by the system, check whether your atomic service has been granted the permission to access the device location information. If not, your atomic service needs to obtain the permission from the user.

The system provides the following location permissions: