0

Does anyone know how to force the "Never ask again" checkbox to not show when requesting Location permission in Android 6? Sometimes it shows. Sometimes it doesn't. Haven't figured out why.

  • 4
    It is supposed to appear the second and subsequent times that you request the same permission, where the user had rejected it from the dialog previously. – CommonsWare Nov 10 '16 at 21:36
  • @CommonsWare It this still actual in new versions of Android? Where can I find official info about this? – Dela Jan 02 '20 at 08:03
  • "It this still actual in new versions of Android?" -- it showed up the last time I tried it on Android 10. "Where can I find official info about this? " -- https://developer.android.com/training/permissions/requesting#explain – CommonsWare Jan 02 '20 at 12:27

1 Answers1

0

Checkout this answer: Android M - check runtime permission - how to determine if the user checked "Never ask again"?

This is kinda what you need to do; call ActivityCompat.requestPermissions again inside ActivityCompat.shouldShowRequestPermissionRationale after they respond POSITIVE to your Dialog box explaining why this permission required.

Community
  • 1
  • 1
kevoroid
  • 5,052
  • 5
  • 34
  • 43