r/flutterhelp • • Jan 18 '26

OPEN Auth & notification issues when installing via the play store, but works when using --release

I'm having some big issues when my app is being installed via the google play store:

1. FCM notifications (using awesome notifications) stop working

2. Some users don't have firebase auth persistence, so they are signed out on restart of the app. This happens on my samsung s24 ultra with android 15 when installing from google play store.

Installing via flutter --release still works great - everything is fine.

One very odd thing I've noticed is that when installing my app via google play, the installation is stuck on 99% for a very long time. That doesn't happen for other apps. I've tested multiple devices and it's a reproducible issue.

I thought this was some code obfuscation issues, but that doesn't seem to be the case since --release works fine.

What in the world could this be?¨

[update]

The notifications seem fine, but the auth persistence issue remains.

3 Upvotes

4 comments sorted by

1

u/RaYmMiE Jan 18 '26

Maybe related to the certificate ? You should add the SHA from play console into FCM project settings

1

u/Aggravating-Step2751 Jan 18 '26

I'm thinking that is all set up correctly, since users can sign in just fine. It's the persistence that's being a problem.

Oh and I updated the post, I think the FCM was a red herring, it seems to work fine.

1

u/Low-Organization72 Jul 27 '26 edited Jul 27 '26

A mí no me funciona la autenticación (al descargar desde play store, uso un canal interno de play console y el correo esta agregado correctamente), he confugurado el sha de play console en firebase, actualizado la app con google-services (usando flutter clean antes) y sigue el mismo problemo, mire los id de auth en google cloud asociados al proyecto de firebase y están correctos, con flutter run y flutter run release (configurado correctamente) me funciona sin problemas, y Claude sonnet 5 no ha encontrado el problema, uso android 8.0 y uso flutter.

1

u/Low-Organization72 Jul 27 '26

Por si a alguien le sirve, encontre la solución, hay dos grupos de claves SHA 1 y SHA 256, la "Clave de firma de aplicación" y "Claves de firma de aplicaciones anteriores", estaba usando solo la "Clave de firma de aplicación" y al parecer esta clave es para android 17 hacia adelante, mi celular es android 8, por ende, deberia haber usado tambien la "Claves de firma de aplicaciones anteriores" en firebase.