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. Receive Location updates and handle them in your app.īefore you can start using the LocationEngine in your app, you will need to add the required permissions to the app's AndroidManifest.xml file.Start the LocationEngine once and set the desired accuracy level.Create a LocationEngine and set at least one LocationListener.Show the outcome of the consent dialog and allow the user to revoke a previous decision.Create a ConsentEngine and show a consent dialog whether data can be collected by the LocationEngine or not.Add the required Android permissions to your manifest file and request the permissions from the user.Integrating the HERE SDK location features requires at least the following steps:
0 Comments
Leave a Reply. |