在Android和权限上的Firebase消息 [英] Firebase messaging on android and permissions
问题描述
我最近向我的android应用添加了firebase消息,并且我注意到了类似时候我的应用需要一些新的权限,例如:
android.permission.READ_PHONE_STATE
我找不到文档中的任何地方,为什么需要此权限。我甚至试图在清单( tools:node =remove
)中显式禁用它,并且消息仍然适用于我。这有点麻烦,我只想为我的用户使用尽可能少的权限。
I recently added firebase messaging to my android app and I noticed some new permissions required to my app at similar time, for example:
android.permission.READ_PHONE_STATE
I couldn't find anywhere in documentation, why is this permission required. I even tried to explicitly disable it in manifest (tools:node="remove"
) and messaging still works for me. It's kinda messy and I want to use only as few permissions as I need for sake of my users.
这是通过消息传递真正需要的权限还是自动从一个库依赖关系?
如何通过什么来判断添加的权限?我试过 manifest-merger-report.txt
,但是没有提及 READ_PHONE_STATE
。
Is this permissions really needed by messaging or is it added automatically from one of library dependencies?
How can I tell what permissions is being added by what? I tried manifest-merger-report.txt
, but there was no mention about READ_PHONE_STATE
.
谢谢!
Thanks!
推荐答案
好吧,这很尴尬。最后,我在父清单中自己添加了权限。感谢您的意见,基于我设法追踪到的人。
Ok this is embarrassing. I in the end, I was adding permissions myself in parent manifest. Thank you for your comments, based on those I managed to track it down.
这篇关于在Android和权限上的Firebase消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!