GuessNumber Kotlin Firebase問題總匯
問題總匯
Last updated
問題總匯
Last updated
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: 改成測試模式