👨‍💻
Mason 開發筆記
  • ✅專案經歷
    • 一加專案經驗
    • 應用開發筆記
  • GuessNumber Kotlin Firebase問題總匯
  • Git 常用指令
  • Vim 學習記錄
  • Kotlin Scope function
  • Android
  • PRIVACY NOTICE
  • 常用指令
  • 極速開發系列
  • Firebase AdMob 開發紀錄
  • Coroutine 紀錄
  • Kotlin Flow
  • Android
    • Data binding
    • Android Livedata
    • Unit Test
Powered by GitBook
On this page

GuessNumber Kotlin Firebase問題總匯

問題總匯

Previous應用開發筆記NextGit 常用指令

Last updated 2 years ago

QA

1 Firebase Database connection was forcefully killed by the server. Will not attempt reconnect. Reason: Database lives in a different region: http://這個問題是因為創建Firebase database之後, app裡面的資訊沒有更新,舊的google-service.json不包含database資料,因此無法找到正確的database url,解決方式是參考stackoverflow上的方式,把 app裡的google-service.json更新就可以了。 Ans: 在 Firebase 控制台>專案總覽>專案設定>我的應用程式就可以下載google-service.json h

有講解:

2023.04.25更新:其實設定google email登入時,就有提示要在專案設定更新google-services.json

2 com.mason.myapplication W setValue at /test_ref/auth1/test_child failed: DatabaseError: Permission denied 因為剛開始創立Firebase Realtime Database 的時候選成了“”,需要認證才可以打資料上去,因此把規則改成測試模式就可以在測試時不用經過認證,但要注意測試模式會有限制,正式發布需改成鎖定模式並進行身份驗證。 ANS: 改成測試模式

https://guess-number-1-default-rtdb.asia-southeast1.firebasedatabase.app/
ttps://stackoverflow.com/questions/68806876/firebase-realtime-database-connection-killed-different-region
Firebase官網
默認規則:鎖定模式