gskinnerTeam / flutter-folio

A platform adaptive Flutter app for desktop, mobile and web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot sign in and sing up on Android version.

ZakroKhitalishvili opened this issue · comments

When I run the repository on Android, I cannot sign in with my existing account. Then I tried to create a new account, but I got a message telling a user with the email exists even on made-up emails.
I checked logs and found:
No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()
I added Firebase.initializeApp() in main(), however still get issues:

W/System  ( 8677): Ignoring header X-Firebase-Locale because its value was null.
D/FirebaseAuth( 8677): Notifying id token listeners about user ( 40f53Ps4FdeNCniH9ttRZsCd4W82 ).
I/flutter ( 8677): Authentication complete, user=AppUser(documentId: null, email: --my-email--, fireId: 40f53Ps4FdeNCniH9ttRZsCd4W82, firstName: null, lastName: null, imageUrl: null)
I/flutter ( 8677): SetCurrentUserCommand: AppUser(documentId: null, email: --my-email--, fireId: 40f53Ps4FdeNCniH9ttRZsCd4W82, firstName: null, lastName: null, imageUrl: null)
I/flutter ( 8677): RouterDelegate.build()
W/er.flutterfoli( 8677): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/er.flutterfoli( 8677): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
I/flutter ( 8677): restoreRouteInfo: /?u=emFrcm8xOTk2QGdtYWlsLmNvbQ==&
W/er.flutterfoli( 8677): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/er.flutterfoli( 8677): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
I/flutter ( 8677): NoSuchMethodError: The method '[]=' was called on null.
I/flutter ( 8677): Receiver: null
I/flutter ( 8677): Tried calling: []=("documentId", "--my-email--")
W/er.flutterfoli( 8677): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
I/flutter ( 8677): NoSuchMethodError: The method '[]' was called on null.
I/flutter ( 8677): Receiver: null
I/flutter ( 8677): Tried calling: []("documentId")
I/flutter ( 8677): Saving: app-model
W/er.flutterfoli( 8677): Accessing hidden method Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z (greylist, linking, allowed)

+1

commented

It is expected that you would have a different account when deploying locally, as a different firebase account is used. You should be able to create a new account with the same email though.

We're looking into the account creation issues, thx!

commented

+1

I'm logged in on web, but can log in on android also I don't see a way to

  • reset password
  • delete account

on web as well

commented

This is fixed on latest master, please re-open if you can still reproduce.

fwiw, delete acct and reset password are not currently implemented as it was out of scope for our timeline. We're hoping to add them soon.