Note that information is only collected if the user has given their consent. See the HERE SDK Privacy Supplement for more information. These steps are explained in greater detail below. This must be possible at any time during the lifecycle of your app. Revoke a previous decision by allowing the user to call requestUserConsent() again. Your application must ensure to show the user's current decision and to revoke a previous decision: Get the current decision via consentEngine.getUserConsentState().Show the consent dialog by calling consentEngine.requestUserConsent().Note that the LocationEngine will be fully operable regardless if the consent is declined by a user or not. The LocationEngine will not deliver location data to the app until the user has made a decision. The application must ensure that this is accessible for the user at all times. In addition, it allows to retrieve the current status and to revoke a previous decision whether to collect data or not. The HERE SDK provides a ConsentEngine that handles the flow to acquire the user’s consent to collect such data. An example of such information is the strength of the nearby Wi-Fi and mobile network signals. The LocationEngine contains functionality that can gather certain information about the surroundings of the mobile device in order to improve the HERE services used by the HERE SDK. Handle the User's Consent Whether to Gather Information On most Android devices a user can decide to turn the location services on, and even increase the accuracy, by opening the device's Settings and navigating to the Security & location section. Prior to using the LocationEngine, it may be a good idea to check if the native location services are enabled. Not all devices provide the same capabilities and may have certain hardware restrictions that can lead to varying results. If your application targets SDK version 28 or lower, you can leave out the ACTIVITY_RECOGNITION permission.įor all example apps accompanying this user guide, we use a convenience class called PermissionsRequestor which takes care of the burdening task to request the user's permission.Īn app using native location services such as GPS will ask for the user's permission. If your application targets SDK version 23 or higher, you can leave out the READ_PHONE_STATE permission.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |