Flutter:请求用户许可,直到获得许可
使用 https://pub.dev/packages/permission_handler 获取权限
,但不会询问用户如果用户拒绝许可,则再次执行。
目前在 android 上检查过(iOS 设备不可用)
请帮助
Using https://pub.dev/packages/permission_handler to get permissions
but it won't ask the user again if user denied permission.
currently checked it on android (iOS device is not available)
Pls Help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果用户已经拒绝,唯一可以做的就是将用户重定向到应用程序设置以启用所需的权限。
If a user has already denied, only thing could be done is to redirect the user to application settings to enable needed permissions.
据我了解,如果被拒绝,您希望不断请求用户许可。
您可以实现类似的方法来不断请求请求,除非您收到拒绝之外的其他信息:
无论您在哪里请求权限,都可以调用此类方法。
As i understood you want to continuously ask user for permission if it is denied.
You can implement something like this to continuously ask for the request unless you get something other than denied :
Call this type of method wherever you are requesting for the permission.