yayaa / LocationManager

Simplify getting user's location for Android
807 stars 187 forks source link

Rational Message hiding ? #16

Closed pmsferreira closed 7 years ago

pmsferreira commented 7 years ago

Hi,

There is some option to hide rational message when requesting permissions? I want to show only default app dialog to enable/disable permissions.

Best regards, Pedro Ferreira

yayaa commented 7 years ago

Well, currently that's not possible :) Since Google ask you to show it and the PermissionManager is their implementation, i didn't make it optional. But yes, it can be implemented.

In these days, i actually have no time to do that changes, but if you are willing to create PR by adding that field into LocationConfiguration and passing that option to PermissionManager, i would gladly review and accept it :)

In any case, i'll put it as enhancement, so that next time i can implement it, thanks.

yayaa commented 7 years ago

Now it is possible with 1.1.5 release, if you don't set rationalMessage then rational dialog will not be displayed at all, and will ask directly for permission.