Firebase在没有权限的情况下工作...如何? [英] Firebase working without permission.INTERNET... How?

查看:123
本文介绍了Firebase在没有权限的情况下工作...如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的firebase应用程序在我的android设备上运行完全没有添加permission.INTERNET标志。我直接从Gradle安装Firebase。我知道,通过android studio中的项目结构窗口添加Firebase将为您添加permissions.INTERNET。但是,情况并非如此,我的Android清单没有任何关于permission.INTERNET,但仍然是完全功能...

我没有能够找到任何信息这是因为它现在由Google运行吗?


p>在构建过程中,清单合并过程在模块
build / outputs中的
manifest-merger- {productFlavor} -report.txt文件中存储每个合并事务的记录
/日志文件夹。为模块构建变体的每个
生成一个不同的日志文件。


你可以在这里找到一个详细的解释哪个库提供权限。



或者因为您使用的是Android Studio,您可以使用Ctrl-Shift-N并输入AndroidManifest.xml来查看下拉菜单在您的构建中的所有清单,并打开它们看看它们包含的内容。

一个功能被添加到Android Studio 2.2显示清单合并的结果。在编辑器窗口中查看清单时,选择窗口底部的Merged Manifest选项卡,以查看清单的贡献者。



在我的build中, Firebase库的数量,添加INTERNET权限的清单似乎是:

  com.google.firebase\firebase-analytics \ 9.4.0 \ AndroidManifest.xml 


My firebase application is running perfectly on my android device without having added the permission.INTERNET flag. I installed Firebase directly from gradle. I am aware that adding Firebase through the project structure window in android studio will add the permissions.INTERNET for you. But this is not the case, my Android manifest has nothing in regards to permission.INTERNET yet is still fully functional...

I havent been able to find any info on this... Is this because its now run by Google?

解决方案

The documentation for manifest merging states:

During the build process, the manifest merge process stores a record of each merge transaction in the manifest-merger-{productFlavor}-report.txt file in the module build/outputs/logs folder. A different log file is generated for each of the module's build variants.

You can look there for a detailed explanation of which library is providing the permission.

Or since you are using Android Studio, you can use Ctrl-Shift-N and type "AndroidManifest.xml" to see a dropdown menu of all the manifests in your build and open them to see what they contain.

A feature was added to Android Studio 2.2 to show the results of manifest merging. When viewing the manifest in an Editor window, select the Merged Manifest tab at the bottom of the window to see the contributors to the manifest.

In my build, which includes a number of Firebase libraries, the manifest that adds the INTERNET permission appears to be:

com.google.firebase\firebase-analytics\9.4.0\AndroidManifest.xml

这篇关于Firebase在没有权限的情况下工作...如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆