如何在Firebase上注册用户?

时间:2020-05-06 09:30:16

标签: firebase authentication flutter

我想在我存储在变量中的Firebase上注册用户。 这是我的代码:

val dataSetFinalState = Transformations.map(placesDataSet) {
    mapDownloadUrl(it)
}

private fun mapDownloadUrl(arrayList: ArrayList<Pair<String, PlaceModel>>): 
 ArrayList<Pair<String, PlaceModel>> {
    arrayList.forEach {
        it.second.previewImageUrl = // How to call getDownloadUrl(path: String) here and wait for response?
    }
    return arrayList
}

感谢您的帮助。 但是我也需要为我的应用程序自动登录,并再次感谢。

1 个答案:

答案 0 :(得分:0)

我猜您要问的是使用Firebase使用Email and Password登录到您的应用。

在这种情况下。下面的文章涵盖了您想要的所有内容。 在flutter中使用Firebase使用电子邮件和密码登录。

Sign in with email and password using firebase in flutter

我希望这能回答您的问题。

已更新

以下是指向以上文章的Github存储库的链接: Github Repository