permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.
https://github.com/permissions-dispatcher/PermissionsDispatcher
Apache License 2.0
11.21k stars 1.44k forks source link

how to apply for permission again when the user refuses to forbid access? #641

Closed fadedHYC closed 4 years ago

fadedHYC commented 4 years ago

Hello, how to apply for permission again when the user refuses to forbid access?

hotchemi commented 4 years ago

if you're talking about "never ask again" checkbox you can use OnNeverAskAgain annotation to hook the event and navigating the user to system setting page is recommended I guess.

fadedHYC commented 4 years ago

But when I returned to the APP from the Settings page, I did not call back OnShowRationale () or NeedsPermission ().I want to call OnShowRationale () or NeedsPermission () or onPermissionDenied () when I return to the APP from the Settings page. Is there any method?

------------------ 原始邮件 ------------------ 发件人: "Shintaro Katafuchi"notifications@github.com; 发送时间: 2019年9月24日(星期二) 晚上6:43 收件人: "permissions-dispatcher/PermissionsDispatcher"PermissionsDispatcher@noreply.github.com; 抄送: "恢恢黑夜"1339868776@qq.com;"Author"author@noreply.github.com; 主题: Re: [permissions-dispatcher/PermissionsDispatcher] how to apply forpermission again when the user refuses to forbid access? (#641)

Closed #641.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

hotchemi commented 4 years ago

Please take a look the lib's usage again, we don't provide such kind of callback. https://github.com/permissions-dispatcher/PermissionsDispatcher#1-attach-annotations

fadedHYC commented 4 years ago

Ok, thank you for your reply

------------------ 原始邮件 ------------------ 发件人: "Shintaro Katafuchi"notifications@github.com; 发送时间: 2019年9月24日(星期二) 晚上10:45 收件人: "permissions-dispatcher/PermissionsDispatcher"PermissionsDispatcher@noreply.github.com; 抄送: "恢恢黑夜"1339868776@qq.com;"Author"author@noreply.github.com; 主题: Re: [permissions-dispatcher/PermissionsDispatcher] how to apply forpermission again when the user refuses to forbid access? (#641)

Please take a look the lib's usage again, we don't provide such kind of callback. https://github.com/permissions-dispatcher/PermissionsDispatcher#1-attach-annotations

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

fadedHYC commented 4 years ago

"REQUEST_INSTALL_PACKAGES"

Hello, how do I request installation permission?

This is my code.

Permissions have been granted, but not to install apk

------------------ 原始邮件 ------------------ 发件人: "Shintaro Katafuchi"notifications@github.com; 发送时间: 2019年9月24日(星期二) 晚上10:45 收件人: "permissions-dispatcher/PermissionsDispatcher"PermissionsDispatcher@noreply.github.com; 抄送: "恢恢黑夜"1339868776@qq.com;"Author"author@noreply.github.com; 主题: Re: [permissions-dispatcher/PermissionsDispatcher] how to apply forpermission again when the user refuses to forbid access? (#641)

Please take a look the lib's usage again, we don't provide such kind of callback. https://github.com/permissions-dispatcher/PermissionsDispatcher#1-attach-annotations

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

hotchemi commented 4 years ago

@fadedHYC could you elaborate the issue and expected behaviour?

fadedHYC commented 4 years ago

I want to download the apk file in my app and install apk. How to apply for apk installation permission

---Original--- From: "Shintaro Katafuchi"<notifications@github.com> Date: Wed, Sep 25, 2019 19:28 PM To: "permissions-dispatcher/PermissionsDispatcher"<PermissionsDispatcher@noreply.github.com>; Cc: "Mention"<mention@noreply.github.com>;"suixinxing"<1339868776@qq.com>; Subject: Re: [permissions-dispatcher/PermissionsDispatcher] how to apply for permission again when the user refuses to forbid access? (#641)

@fadedHYC could you elaborate the issue and expected behaviour?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

kenargo commented 3 years ago

REQUEST_INSTALL_PACKAGES is a new permission in Anroid O and above that allows apps to download and install APKs.

Is there plans to support this permission?