简体   繁体   中英

Tracking Requirements for Map Android Development

I'm trying to use the MapQuest API but when I go to start navigation, I get the following error:

java.lang.IllegalStateException: User location tracking consent status was never set. 
User must be prompted for tracking consent to comply with legal requirements.

This seems like something that needs to be set in the Manifest as a permissions to comply with Europe's new privacy requirements, but I can't find what permission is required. I already have ACCESS_FINE_LOCATION defined. Do you know what permission is needed?

The sample app in the nav SDK documentation should cover what needs to be done to get the user's permission. The Traffic Data Collection: Requesting User Consent section of the user guide discusses this in more detail.

mNavigationManager.setUserLocationTrackingConsentStatus(UserLocationTrackingConsentStatus.GRANTED);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM