Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem when using both FirebaseAuth and FirebaseDatabase #17

Closed
duclong2301 opened this issue Nov 28, 2016 · 8 comments
Closed

problem when using both FirebaseAuth and FirebaseDatabase #17

duclong2301 opened this issue Nov 28, 2016 · 8 comments

Comments

@duclong2301
Copy link

duclong2301 commented Nov 28, 2016

I single use FirebaseAuth(use facebook token) or FirebaseDatabase(realtime database) it work perfectly (Android).
But I use both of them, my app freeze after login. Folow:

  1. Connect database (nothing happen, if push data, it work)
    2.Login with facebook sdk to get token.(still work)
  2. Login with FirebaseAuth use facebook token..... ->> app freeze. (or not freeze but cannot push data with FirebaseDatabase plugin)
    Sr, my English.
@stewartmiles
Copy link
Contributor

Any chance you could share a modified sample application that demonstrates this?

@duclong2301
Copy link
Author

I detected , if not logout firebase auth, can't push data.
Here my demo project.
Thanks for help!

@mxkacsa
Copy link

mxkacsa commented Dec 12, 2016

I have same issue but i use only FirebaseAuth in the project.
Create user works fine, but throw exception on android (Galaxy S7)
When I sign in or delete user the application always freeze, but only when return with completed.

image screenshot from android with exception

@stewartmiles
Copy link
Contributor

Are you sure you have your database rules configured so that the logged in user can push to the database? If you can't share specific information on this public thread could you contact support@firebase.google.com and we can discuss this further there ?

@mxkacsa
Copy link

mxkacsa commented Dec 17, 2016

I installed 1.1.0 sdk and now works fine! :)

@alehkudrevich
Copy link

alehkudrevich commented Dec 19, 2016

Same problem here. When I login with Facebook token and try to get data from database, my editor freeze or crash without stacktrace information.

On Android device SignInWithCredentialAsync return an error

Firebase.FirebaseException: An internal error has occurred. [ Unsuccessful debug_token response from Facebook: {"error":{"message":"Error validating application. Application has been deleted.","type":"OAuthException"," code":190}} ]

@stewartmiles
Copy link
Contributor

@alehkudrevich any chance you have any more information about this? We discovered a problem with Auth that could lead to a hang when signing in but I don't believe we've seen the error you're describing.

You mention your editor freeze / crashes, are you running in the editor? If so, we don't really support Firebase Authentication in the editor at the moment as we only provide a stub implementation.

@stewartmiles
Copy link
Contributor

This should be resolved in version 1.1.1
https://firebase.google.com/support/release-notes/unity#1.1.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants