I've firebase auth services in my flutter app. It's working on emulator & real device (while debug). But when i publish it on google play neither alpha test or release version it doesn't work.
Main.dart
StreamProvider(
create: (context) => context.read<AuthenticationService>().authStateChanges,
)
AuthService
final FirebaseAuth _firebaseAuth;
AuthenticationService(this._firebaseAuth);
AccessToken accessToken;
Stream<User> get authStateChanges => _firebaseAuth.idTokenChanges();
SignedIn Method in AuthService
Future<String> signIn({String email, String password}) async {
try {
await _firebaseAuth.signInWithEmailAndPassword(email: email, password: password);
String uid = await FirebaseAuth.instance.currentUser.uid;
return "Signed in";
} on FirebaseAuthException catch (e) {
return e.message;
}
}
Login.dart
var login = await context.read<AuthenticationService>().signIn(email: mailController.text, password: sifreController.text);

