๋ฐ˜์‘ํ˜•

firebase 4

๊ฐœ๋ฐœ์ผ๊ธฐ # ๋ฒˆ์™ธํŽธ2 : ๋‚œ ์„œ๋ฒ„๊ฐ€ ์—†๋Š”๋ฐ(Serverless) cloud function ์‚ฌ์šฉํ•ด ๋ณด๊ธฐ

Cloud Function ์„œ๋ฒ„๋ฅผ ๋ณด์œ  ํ•˜์ง€(Serverless) ์•Š๊ณ  ์„œ๋ฒ„๊ฐ€ ์žˆ๋Š” ๊ฒƒ์ฒ˜๋Ÿผ ์—…๋ฌด ๊ตฌํ˜„์„ ํ•˜๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค. ๊ฐœ๋ฐœ์„ ํ•˜๋ฉด์„œ ๋ฐ์ดํ„ฐ ๋ฒ ์ด์Šค์™€ ์Šคํ† ๋ฆฌ์ง€๋ฅผ firebase์„ ํ™œ์šฉํ•˜๊ณ  ์žˆ๋‹ค๋ฉด cloud function ๋„ ๋ฐฐ์›Œ์„œ ์ค€๋น„๋ฅผ ํ•ด์•ผ ํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ์ง€๊ธˆ ๊ฐœ๋ฐœํ•˜๊ณ  ์žˆ๋Š” ์•ฑ์ด payapp์™€ API ์—ฐ๋™์„ ํ•ด์•ผ ํ•˜์ง€๋งŒ, ๊ฐ€๋‚œํ•œ(?) ๊ฐœ๋ฐœ์ž๋Š” ์„œ๋ฒ„๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค ๋Œ€์•ˆ์œผ๋กœ ์ƒ๊ฐํ•ด ๋ณผ ์ˆ˜ ์žˆ๋Š” ๊ฒƒ์„ ์ฐพ์•„๋ณด๋‹ค๊ฐ€ ์•Œ๊ฒŒ ๋œ cloud function์˜ ๊ตฌํ˜„์— ๋Œ€ํ•œ ์ด์•ผ๊ธฐ๋ฅผ ํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. * google cloud function : python, node.js, java ๋“ฑ๋“ฑ์ด ์ง€์›์ด ๋œ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ** firebase cloud function : node.js ๋งŒ (2022.11.12 ํ˜„์žฌ๋กœ๋Š”) ์ง€์›์ด..

JetPack Compose : Cloud Storage์— ์ด๋ฏธ์ง€๋ฅผ ์—…๋กœ๋“œํ•˜๊ณ  Firestore์— URL์„ ์ €์žฅํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ๋ฌด์—‡์ž…๋‹ˆ๊นŒ? (feat ๊ตฌ๊ธ€๋ง)

https://medium.com/firebase-tips-tricks/how-to-upload-an-image-to-cloud-storage-and-save-the-url-in-firestore-42711ca1df46 How to upload an image to Cloud Storage and save the URL in Firestore? A simple solution for saving an image to Firebase Storage, writing the URL in Firestore, and reading it back using Jetpack Compose. medium.com ์š”์ƒˆ ์ž‘์—…์ค‘์ธ ์•ฑ์— ์ ์šฉํ•ด ๋ณผ ์š”๋Ÿ‰์œผ๋กœ ์ด๋Ÿฐ ์ž๋ฃŒ๋ฅผ ์ฐพ๊ณ  ์žˆ์—ˆ๋Š”๋ฐ, ๋งˆ์นจ ์ฐพ์•˜๋‹ค. ์žŠ์„ ๊นŒ ์‹ถ์–ด ๋งํฌ๋ฅผ ๊ฑธ์–ด๋‘..

์•ˆ๋“œ๋กœ์ด๋“œ ์•ฑ ๋งŒ๋“ค๊ธฐ Firebase ์˜ ์ธ์ฆ ๊ธฐ๋Šฅ ํ™œ์šฉ

์•ฑ์„ ๋งŒ๋“ค๋ฉด์„œ ์‚ฌ์šฉ์ž ์ธ์ฆ์„ ํ•˜๋Š” ๊ฒฝ์šฐ ์—ฌ๋Ÿฌ ๊ฐ€์ง€์˜ ์ธ์ฆ ๊ธฐ๋Šฅ์„ ์ด์šฉํ•  ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™๋‹ค. ๊ทธ๋Ÿฌ๋‹ค๊ฐ€ ์˜ค๋Š˜์˜ ์ด์•ผ๊ธฐ๋ฅผ ํ•˜๊ฒŒ ๋œ ์ด์œ ๋Š” https://stackoverflow.com/questions/47619229/google-sign-in-failed-com-google-android-gms-common-api-apiexception-10 Google sign in failed com.google.android.gms.common.api.ApiException: 10: So I'm Stuck on this frustrating issue. I am quite new to Google Auth on Firebase but I done everything the firebase docs instructed ..

์•ˆ๋“œ๋กœ์ด๋“œ ์•ฑ ๋งŒ๋“ค๊ธฐ Firebase Real time Database ์˜ ํ™œ์šฉ

์˜จ๋ผ์ธ์œผ๋กœ ๋™์‹œ์— ์—ฌ๋Ÿฌ์‚ฌ๋žŒ์ด ์‚ฌ์šฉํ•  ์•ฑ์„ ๋งŒ๋“ค๊ณ  ์‹ถ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ๋™์‹œ์— ๋ฐ์ดํ„ฐ๋ฅผ ๋ณผ ์ˆ˜ ์žˆ์–ด์•ผ ํ•œ๋‹ค๋ฉด ๋‚ด๊ฐ€ ์šด์˜ํ•  ์„œ๋ฒ„๋ฅผ ๋งŒ๋“ค์–ด์•ผ ํ•œ๋‹ค. ๋ฐฉ๋ฒ•์œผ๋กœ๋Š” ํ˜ธ์ŠคํŒ… ์„œ๋น„์Šค๋ฅผ ์ด์šฉํ•ด์„œ ์—…๋ฌด๋ฅผ ์ฃผ๊ณ  ๋ฐ›์„ ์„œ๋ฒ„๋ฅผ ๊ตฌ์ถ•ํ•˜๊ณ  ์‚ฌ์šฉํ•˜๊ฑฐ๋‚˜, ๋‚ด๊ฐ€ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ์œ„์น˜์— ์„œ๋ฒ„์„ ๊ตฌ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์„ ๊ฒƒ ๊ฐ™๋‹ค. ๊ทธ๋Ÿฌ๋‚˜, ์ด๋ ‡๊ฒŒ ์šด์˜ํ•˜๊ธฐ์—๋Š” ํ•ด์•ผํ•  ์ผ์ด ๋งŽ๊ณ , ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ์—ฌ๋ ฅ์ด ์•ˆ๋  ์ˆ˜ ๋„ ์žˆ๋‹ค. ๊ทธ๋–„ ๋‚˜์˜ค๋Š” ๊ฒƒ์ด Firebase ๊ฐ€ ์•„๋‹๊นŒ ์‹ถ์€๋ฐ... ์ด๋ฒˆ์— Firebase ์„ ์ด์šฉํ•œ ์•ฑ์„ ๋งŒ๋“ค๋ฉด์„œ ์‚ฌ์šฉํ–ˆ๋˜ ๋ถ€๋ถ„์— ๋Œ€ํ•œ ์ •๋ฆฌ๋ฅผ ํ•ด ๋‘˜๊นŒ ? 1. record ์˜ ๊ตฌ์„ฑ Sqlite ์„ ์‚ฌ์šฉํ•  ๋•Œ๋„ table ์„ ๊ตฌ์„ฑํ•ด์•ผ ํ•˜๊ธฐ ๋–„๋ฌธ์— ๋ฐ˜๋“œ์‹œ ๋ฐ์ดํ„ฐ๋กœ ๋“ค์–ด๊ฐˆ ํ•ญ๋ชฉ์— ๋Œ€ํ•œ ์„ค๊ณ„๋Š” ํ•„์š”ํ•˜๋‹ค. ์ด์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ Firebase ์„ ์‚ฌ์šฉํ•˜๊ณ ..

๋ฐ˜์‘ํ˜•