deeley 2023-03-22 15:13 采纳率: 40%
浏览 22
已结题

firebase 数据库url相关问题

接上个问题
https://ask.csdn.net/questions/7907189?spm=1001.2014.3001.5501
app运行后报错

W/System: Ignoring header X-Firebase-Locale because its value was null.
W/System: Ignoring header X-Firebase-Locale because its value was null.
D/FirebaseAuth: Notifying id token listeners about user ( 6hRPZYzAdzR4dcqBwkuZJpdPa7r1 ).
D/FirebaseAuth: Notifying auth state listeners about user ( 6hRPZYzAdzR4dcqBwkuZJpdPa7r1 ).
W/PersistentConnection: pc_0 - Firebase Database connection was forcefully killed by the server. Will not attempt reconnect. Reason: Database lives in a different region. Please change your database URL to https://book-app-bb141-default-rtdb.asia-southeast1.firebasedatabase.app
求求大佬们说详细点
  • 写回答

2条回答 默认 最新

  • deeley 2023-03-22 15:44
    关注

    问题已解决 ,不同区域所造成的,我用的菲律宾的服务器,使用的文件不包含实时数据库url,sdk假定了数据库位于原始区域美国,将Google services.json重新下载并把Google.gms:google-services换成最新版并cync now

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 3月30日
  • 已采纳回答 3月22日
  • 创建了问题 3月22日