admin管理员组

文章数量:1122826

|-|i

To make my app able to let the user enable location, I use exception.startResolutionForResult

But my app displays "For a better experience, your device will need..."

Although I see Google Maps displays "To continue, your device will need..."

I want the "To continue" way, could someone please help me? Regards

|-|i

To make my app able to let the user enable location, I use exception.startResolutionForResult

But my app displays "For a better experience, your device will need..."

Although I see Google Maps displays "To continue, your device will need..."

I want the "To continue" way, could someone please help me? Regards

Share Improve this question asked yesterday RaphaelRaphael 455 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Just adding setAlwaysShow(true) to LocationSettingsRequest, displays "To continue" instead of "For a better experience"

e.g.

val builder = LocationSettingsRequest.Builder()
    .addLocationRequest(locationRequest)
    .setAlwaysShow(true)

Thanks https://stackoverflow.com/a/56420194/22157294

本文标签: