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

All firebase plugins in one project #8

Closed
sezeregrek opened this issue Nov 18, 2016 · 7 comments
Closed

All firebase plugins in one project #8

sezeregrek opened this issue Nov 18, 2016 · 7 comments

Comments

@sezeregrek
Copy link

Do you have plan to create an Unity project that includes all of plugins?

@stewartmiles
Copy link
Contributor

Not at the moment.

What exactly do you want to see?

@sezeregrek
Copy link
Author

I have a problem when I have imported auth and db plugins in my project. Problem is that when I try to auth from apk on my phone, I see user is authenticated in firebase console but call back functions didn't called. Do you have any suggestions?

@stewartmiles
Copy link
Contributor

Could you see whether the problem occurs with the authentication sample which hooks an event to determine when a user logs in / logs out ? https://github.com/firebase/quickstart-unity/tree/master/auth/testapp

User change events are hooked here:
https://github.com/firebase/quickstart-unity/blob/master/auth/testapp/Assets/TestApp/UIHandler.cs#L108

Here's an example of a callback after sign-in:
https://github.com/firebase/quickstart-unity/blob/master/auth/testapp/Assets/TestApp/UIHandler.cs#L147

@sezeregrek
Copy link
Author

There is no problem with using only auth pulgin in unity. if I add database plugin, I can send and receive data from database (editor auth via p12 file), but there is no response from Android login.

Also, when I try to login from editor, there is no "System.AggregateException: Exception of type 'System.AggregateException' was thrown." in console. I know, yo dont support editor login, I just wanna see the error message.

#3

@stewartmiles
Copy link
Contributor

Similar to #5 you need to sign your application for Auth to work on Android.

From https://github.com/firebase/quickstart-unity/blob/master/auth/testapp/readme.md

  • To generate a SHA1,
    first you will need to set the keystore in the Unity project.
    - Locate the Publishing Settings under Player Settings.
    - Select an existing keystore, or create a new keystore using the toggle.
    - Select an existing key, or create a new key using "Create a new key".
    - After setting the keystore and key, you can generate a SHA1 by
    running this command:
    keytool -exportcert -list -v -alias <key_name> -keystore <path_to_keystore>

@stewartmiles
Copy link
Contributor

@sezeregrek any progress on your side? Did you get this to work?

@stewartmiles
Copy link
Contributor

We now have a sample that integrates almost all Firebase features, check it out here:
https://github.com/google/mechahamster

@firebase firebase locked and limited conversation to collaborators Oct 27, 2019
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

2 participants