我想弄清楚为什么 firebase 存储使用量远远超出我的预期

我的 Firebase 存储中只有几个照片文件,大约 75 张照片,每张照片 100kb。但是我存储的字节数和对象计数远远超出了我的预期,如上图所示。在这种情况下,也许我可以从此处的文档中找到答案
当您将函数的源代码部署到 Cloud Functions 时,该源代码存储在 Cloud Storage 存储分区中。然后,Cloud Build 会自动将您的代码构建到容器映像中,并将该映像推送到 Container Registry。当 Cloud Functions 需要运行容器来执行您的函数时,它会访问此映像。
构建图像的过程是完全自动的,不需要您的直接输入
可能是因为我创建了很多云函数。这就是为什么我的 Firebase 存储中存储的字节数和对象计数很大的原因
现在我需要知道为什么存储带宽在一个月内高达 20.2 GB。我仍在开发我的应用程序,用户就是我。我不认为我会在一个月内达到 20.2 GB,因为在我的 Android 应用程序中,我在显示图像时使用缓存。
我很怀疑,我的存储带宽使用率过高的原因是云功能。八月,我firebase deploy对我的云功能执行了很多操作。Cloud Function 会影响 Firebase 存储带宽的使用吗?
我在印度尼西亚,我的 Firebase Storage 和 Firestore 位于 asia-southeast2,但我的 Cloud Function 位于 asia-east2。我的云功能对我的 firestore 和存储中的图像执行一些操作。但我仍然认为它不会达到每月 20.2 GB
从上图可以看出,带宽使用分为 3 个不同的部分
asia.artifacts.projectID.appspot.com 似乎远远高于其他,它高达 4.3 GB
那是我的问题的一些信息。所以我需要知道,云功能部署/操作会影响我的 Firebase 存储带宽使用吗?
我需要了解为什么会发生这种情况,因为我担心如果很多用户使用我的应用程序会产生意外的成本。
我实际上不确定,如何使用导航控制器组件设置不同工具栏的正确方法或最佳实践
在我的应用程序中。我想设置 2 个不同的工具栏。
两个不同颜色的工具栏。这只是为了简化案例,实际上我有多个工具栏
我正在使用导航控制器组件。目前在我的主活动中作为主持人,我使用此代码在主活动中设置了绿色工具栏
setSupportActionBar(green_toolbar)
supportActionBar?.setDisplayShowTitleEnabled(false)
// set up top hierarchy destination
val appBarConfiguration = AppBarConfiguration(setOf(
R.id.destination_home,
R.id.destination_search,
R.id.destination_user_control,
R.id.destination_create_event)
)
green_toolbar.setupWithNavController(navController,appBarConfiguration)
Run Code Online (Sandbox Code Playgroud)
那么使用导航控制器组件设置不同工具栏的最佳方法是什么?
我必须在我的主要活动中制作这两个不同的工具栏吗?或者我是否必须将 fragmentY 目的地(具有红色工具栏)设置为另一个活动而不是片段?
或者....我不知道....请帮忙:)
android android-navigation android-architecture-components android-jetpack android-architecture-navigation
让坐吧 我有一些这样的目的地
从片段 A --> 到片段 B --> 到片段 C
我可以使用 Safe Args 将数据从片段 A 传递到片段 B,也可以使用从片段 B 到片段 C 的安全参数。
如果我想将片段 C 中生成的字符串带回片段 B 或片段 A 怎么办?
要从片段 C 导航到片段 B,我使用代码:
Navigation.findNavController(fragmentView).navigateUp()
Run Code Online (Sandbox Code Playgroud)
并从片段 C 导航到片段 A,我使用代码:
Navigation.findNavController(view).popBackStack(R.id.fragmentA, false)
Run Code Online (Sandbox Code Playgroud)
那么如何将值传递回之前的片段目的地?我是否必须从片段 C 返回到片段 B 并通过安全参数传递值?
真的需要你的帮助。非常感谢 :)
android android-fragments android-navigation android-jetpack android-architecture-navigation
我将MainActivity作为导航控制器的主机,它具有工具栏和底部导航视图
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:theme="?attr/actionBarTheme"
android:minHeight="?attr/actionBarSize"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
<fragment
android:id="@+id/nav_host_fragment"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/bottom_nav"
app:layout_constraintTop_toBottomOf="@+id/toolbar"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:name="androidx.navigation.fragment.NavHostFragment"
app:navGraph="@navigation/navigation_graph"
app:defaultNavHost="true"
/>
<android.support.design.widget.BottomNavigationView
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:background="@color/colorPrimary"
app:itemIconTint="@color/color_bottom_view_navigation"
app:itemTextColor="@color/color_bottom_view_navigation"
app:menu="@menu/menu_bottom_view"
app:labelVisibilityMode="labeled"
android:id="@+id/bottom_nav"/>
</android.support.constraint.ConstraintLayout>
Run Code Online (Sandbox Code Playgroud)
它会主办一些片段作为用于像导航底视图菜单HomeFragment,OrderFragment,FavouriteFragment,CartFragment,ProfileFragment。
假设在中有注销按钮HomeFragment,如果单击该按钮,它将移至“登录”屏幕。与往常一样,登录屏幕或注册屏幕没有底部导航视图,也没有工具栏。
那么,如果使用导航控制器,则删除该底部导航视图以及工具栏的最佳方法是什么?
我试图<Include> 在导航控制器图形中使用标签,
因此我制作了两个导航图,然后进行了2个活动以将片段放置为宿主。第一个活动具有底部导航视图和工具栏(MainActivity,就像我上面共享的xml一样),另一个活动没有底部导航视图和工具栏
导航图如下图所示:
但是当我从HomeFragment(具有注销按钮)转到LoginFragment使用以下代码时:
logout_button.setOnClickListener {
Navigation.findNavController(it).navigate(R.id.action_toAuthActivity)
}
Run Code Online (Sandbox Code Playgroud)
但在登录屏幕中,底部导航视图和工具栏仍然存在 …
我想在我的iOS应用程序上安装facebook SDK,以便使用Facebook帐户进行社交登录.但通过cocoapods安装后,它给了我很多警告信息.我正在使用Xcode 9.2.这是使用cocoapods安装时我的podfile上的代码
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'facebook login firebase' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for facebook login firebase
pod 'Bolts'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
end
Run Code Online (Sandbox Code Playgroud)
这是警告的屏幕截图
https://ibb.co/kx5fCR
(这里是链接,以防图像没有出现)
https://developers.facebook.com/docs/ios/getting-started 我在该文档的第4步,但警告出现了.那么这里出了什么问题?我错过了什么吗?
我是初学者,我正在制作一个让用户协调的应用程序.我正在制作像下面这样的locationManager类
import UIKit
import CoreLocation
class LocationManager: NSObject {
let manager = CLLocationManager()
var didGetLocation: ((Coordinate?) -> Void)?
override init() {
super.init()
manager.delegate = self
manager.desiredAccuracy = kCLLocationAccuracyBest
manager.requestLocation()
}
func getPermission() {
// to ask permission to the user by showing an alert (the alert message is available on info.plist)
if CLLocationManager.authorizationStatus() == .notDetermined {
manager.requestWhenInUseAuthorization()
}
}
}
extension LocationManager : CLLocationManagerDelegate {
func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) {
if status == .authorizedWhenInUse {
manager.requestLocation()
} …Run Code Online (Sandbox Code Playgroud) 所以目前我正在开发一个具有特定捆绑标识符的应用程序。之前我使用了一个苹果开发者账号,我们打算更换这个app关联的苹果开发者账号。
当我像这样将“团队”更改为新的苹果开发者帐户时:
然后我收到这样的错误:
未能创建配置文件。您的开发团队无法注册应用 ID“xxxxx”。将您的捆绑标识符更改为唯一字符串以重试。
找不到“xxxxx”的配置文件 Xcode 找不到任何与“xxxxxxx”匹配的 iOS 应用开发配置文件。
看来我必须更改包标识符。我不想更改包标识符。
我试图在我以前的苹果开发者帐户中进行检查,我认为我必须删除与以前的苹果开发者帐户中的捆绑标识符相关的内容,但我找不到它(也许我不知道该文件在哪里需要删除)
如果我想使用相同的捆绑标识符应用程序但更改苹果开发者帐户,我该怎么办?
我在这里有点困惑,
当我第一次开发应用程序时,我没有为我的公司付费苹果开发者帐户,我只是使用免费帐户,并且这个应用程序与那个个人团队(广告IT解决方案)相关联,我这个个人团队的Apple ID让说是xxx@gmail.com,
然后使用相同的 Apple ID (xxx@gmail.com) 然后我注册为组织(我的公司)。
但是当登录到这个组织帐户时,我无法在 App IDs 部分找到包标识符。
免费帐户和付费帐户似乎不同。并且此捆绑标识符似乎与该个人帐户(免费帐户)相关联
我不知道如何访问那个个人团队帐户,因为当我使用相同的Apple ID登录时,我将被定向到组织帐户
xcode ios provisioning-profile ios-provisioning apple-developer
so I am trying to learn about using Navigation graph in Android, I am not sure what I am doing, so maybe you have better way.
let say there are 2 sections in my app:
Section one is called Main section, which has bottom navigation view and toolbar
Section two is called Authentication Section (for login page, sign up) , it doesn't has bottom navigation view or toolbar
so because these 2 sections has different 'frame' (one has bottom navigation …
navigation android android-architecture-components android-jetpack android-architecture-navigation
GoogleService-info.plist我的应用程序的项目文件中有文件。我将该文件复制到我的项目的方式是这样的
我GoogleService-info.plist从 Firebase 站点下载到我 Mac 上的下载文件夹。然后我通过使用该文件将该文件从下载文件夹拖到 Xcode 进行复制
我的问题是......
当我GoogleService-info.plist从我的 mac 上的下载文件夹中删除 时,它会导致我的 Xcode 项目出错,该文件也像这样从我的项目中消失
找不到构建输入文件:“/Users/dev.adsapps/Downloads/GoogleService-Info.plist”
这里出了什么问题?
我试图在升级到 Xcode 10 后的问题问题中搜索答案:找不到构建输入文件,但问题似乎有点不同
将文件复制到我的项目时我有错误的方法吗?
我正在使用 Xcode 10。
我想在使用毕加索下载后模糊我的图像。我实际上找到了一个可以为我的图像添加模糊效果的库:https : //github.com/wasabeef/picasso-transformations
这是我使用的代码:
Picasso.get()
.load(currentEvent.posterDownloadPath)
.transform(BlurTransformation(25,3))
.into(recommendedEventViewHolder.blurryImageView)
Run Code Online (Sandbox Code Playgroud)
但不幸的是我有错误:
我尝试了几种方法,但仍然无法正确使用该库的模糊效果。你能帮我添加模糊效果吗?也许你有不同的方式(不使用这个库)?
爪哇没问题。
android ×5
ios ×4
android-architecture-components ×3
android-architecture-navigation ×3
firebase ×2
xcode ×2
facebook ×1
gps ×1
kotlin ×1
navigation ×1
picasso ×1
swift ×1