Requesting Runtime permissions on Xiaomi devices

自闭症网瘾萝莉.ら 提交于 2019-12-06 05:48:47

The solution is to actually follow the guidelines in the documentation and request all the permissions in a dangerous permissions group instead of asking for one representative. (obviously only the permissions listed in your manifest xml)

When issuing a single request with multiple permissions from the same group the user sees only one dialog.

I know that the documentation states here and this looks like a safer approach

Any permission can belong to a permission group, including normal permissions and permissions defined by your app. However, a permission's group only affects the user experience if the permission is dangerous. You can ignore the permission group for normal permissions.

But so far I implemented a specific request for all permissions only for Xiaomi and all other devices are working fine while requesting one permission from a group.

Update: according to this the correct behavior is the way that was implemented in Xiaomi - and it's a bug that was fixed in Oreo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!