简体   繁体   中英

Flutter Firebase Database not working on release after publish in Google play

Flutter Firebase Database not working on release after publish in Google play and Firebase Auth working fine. I have added the SHA from Google play console to firebase console

I have no problems when running on debug mode

When you publish your apk to the PlayStore , you get assigned with a singing certificate SHA1 . That you have to add to your firebase console.

Get SHA Certificate from playstore and add it to the firebase console

在此处输入图像描述

by modify firebase rules works fine to me

thanks Kashif Ali Bhatti for the answer in command above.

Copy and paste the SHA1 signature key generated by the google console after publishing your app. Follow these steps:

  1. Go to play console
  2. Scroll down to the Configuration setting
  3. Copy the sha1 or sha256 signature
  4. open firebase your console
  5. go to project settings and select the android app.
  6. paste the sha signature.

Hope it works for you.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM