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

Firebase Auth have some dependencies issues #782

Closed
JankunChar opened this issue Jul 5, 2023 · 34 comments
Closed

Firebase Auth have some dependencies issues #782

JankunChar opened this issue Jul 5, 2023 · 34 comments

Comments

@JankunChar
Copy link

Unity editor version: Unity 2021.3.27f1

Firebase Unity SDK version: Firebase_unity_sdk (11.2.0).

Problematic Firebase Component: Auth

Other Firebase Components in use: None(only auth)

Additional SDKs you are using:None(only auth)

Platform you are using the Unity editor on: Windows

Platform you are targeting: Android

Scripting Runtime:Mono

Pre-built SDK from the website : Firebase_unity_sdk (11.2.0).

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
What's the issue repro rate? (eg 100%, 1/5 etc) 1

What happened? How can we make the problem occur?

I am new to firebase. I have integrated firebase Auth version (11.2.0).

I am unity 2021.3.27f1. I have placed googleservices.json in Assets Folder.

When i build the firebase and run in my mobile it shows the error.

One or more Firebase dependencies are not present. Current dependency status: UnavailableOther

I have also used Asset/dependency manager/Android Resolve/Force Resolve/ It says resolved...

When i click the Authenticate Phone Number. Nothing happens....

I have spent a lot of time in googling the issue but havent find any useful solution.

could any one can give solution.

Thanks and Regards
James

@paulinon
Copy link
Contributor

paulinon commented Jul 5, 2023

Hi @JankunChar,

Thanks for bringing this to our attention. Have you created a keystore and generated your SHA1 and SHA256 keys? If not, you can set your keystore from the Publishing Settings under your Player Settings and running
keytool -list -v -keystore <path_to_keystore> -alias <key_name>. Downloading a new google-services.json file is necessary after this step.

Otherwise, could you provide a minimal, reproducible example of your implementation? We can use this as a baseline for our troubleshooting.

@paulinon paulinon added the needs-info Need information for the developer label Jul 5, 2023
@JankunChar
Copy link
Author

@paulinon thanks for you reply . I have entered sha1 and sha256 in firebase console. and i have downloaded the latest googleservice.json file . Then only error happens. What i have to do for running the firebase sms successfully?

@JankunChar
Copy link
Author

JankunChar commented Jul 6, 2023

Hi Paulion

I have attached testapp file in the below link .

(removed because u have downloaded it.)

This is my apk file

(https://www.dropbox.com/s/q9d98zlyeno0505/SmsError.apk?dl=1)

.
Kindly do the needful.

@paulinon
Copy link
Contributor

paulinon commented Jul 7, 2023

Thanks for the additional information, @JankunChar. Upon checking, it seems that you're using version 11.0.0 of the SDK as well as a more recent version of the quickstart. In order to solve the issue in the other ticket you mentioned, have you tried deleting the folders related to the SDK then importing a downgraded SDK version? Could you also provide debug logs that appear while you're running the app build?

@paulinon paulinon added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Jul 7, 2023
@JankunChar
Copy link
Author

JankunChar commented Jul 7, 2023

@paulinon Thanks for you reply.

have you tried deleting the folders related to the SDK then importing a downgraded SDK version?

Actually i have opened the Fresh downloaded the Fresh Quick Start Master and then i have downloaded the 10.7.0 . I never installed Firebase 11 Version.

have you tried deleting the folders related to the SDK then importing a downgraded SDK version?

which Folder i have to delete. What you are ask me to do.

 1) Shall i  First Install firebase 11 and  then you ask me to install firebase 10.7.0 then i have to delete the old files. 

Are you ask me to do the above.

I am using Fresh Recent Quck Start master + 10.7.0 ... ( in the thread i have mentioned)..

in case if you upload the old quick start master it will help for me .

Kindly do the needful. My project is in live. So sms is not receiving. I am in deep trouble.

Kindly provide correct qucik start master + firebase version. ,,

Did you check my Apk + my sample project. Whats your feedback????

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Jul 7, 2023
@paulinon
Copy link
Contributor

paulinon commented Jul 7, 2023

HI @JankunChar,

Apologies for any confusion this may have caused. To clarify, the workaround for the issue described in #764 is to make use of the VerifyPhoneNumber_DEPRECATED() function in the latest quickstart project (change VerifyPhoneNumber to VerifyPhoneNumber_DEPRECATED in line 1027 of the UIHandler.cs file) with a downgraded version (10.7.0) of the SDK. If you're not facing the error message saying that The type or namespace name 'AuthResult' does not exist in your fresh quickstart project, then you may disregard what I said about deleting the folders related to the SDK then importing a downgraded SDK version.

I utilized the testapp.rar file you provied, but I'm facing the behavior described in #764 instead of nothing happening. Does any error message appear in your fresh project after tapping Authenticate Phone Number? If not, it would be helpful if you provide any logs that may appear as you test the app build so that we can determine what's causing this to happen. You may refer to this page for more information.

@paulinon paulinon added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Jul 7, 2023
@JankunChar
Copy link
Author

Hi Paulion

I have downloaded the Fresh Unity Quick Start master and then i have installed firebase 10. 7.0.. It says Nothing to Import, All Assets from this package are already in your project. I think there 10.7.0 package default inside the recent quick start master project .

Forum8 7

The Error shows ..

Forum8 7 2

Once i installed firebae 11 . the error goes. But the error displays Firebase Dependencies unavailable other

I have changed the VerifyPhoneNumber_DEPRECATED() to VerifyPhoneNumber. But nothing works.

deleting the folders related to the SDK then importing a downgraded SDK version

Which Folder i have to delete.Kindly mentioned it....

My project is in live. Sms is not receiving. So i am in deep trouble. So kindly provide the solutions with immediate effect.

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Jul 8, 2023
@JankunChar
Copy link
Author

JankunChar commented Jul 8, 2023

Kindl look upon this issue. Kindly help me to solve.

@paulinon
Copy link
Contributor

Hi @JankunChar,

The Firebase SDK isn't included in the quickstart project. Does the issue in your first screenshot persist when you import this SDK? If so, please provide the steps you're doing to import the SDK. You may refer to the readme.md file for detailed instructions on how to build the project.

Regarding your app build, I'd like you to provide the debug logs I previously asked for. Given that nothing is happening after tapping Authenticate Phone Number, it's possible that the backend could be causing this, and we'd need the debug logs in order to verify whether or not this is the case.

@paulinon paulinon added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Jul 10, 2023
@google-oss-bot google-oss-bot added the stale Don't have recent activity label Jul 17, 2023
@google-oss-bot
Copy link

Hey @JankunChar. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@JankunChar
Copy link
Author

@paulinon i will update soon.

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed stale Don't have recent activity labels Jul 17, 2023
@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed stale Don't have recent activity labels Aug 23, 2023
@paulinon paulinon added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Aug 23, 2023
@google-oss-bot google-oss-bot added the stale Don't have recent activity label Aug 30, 2023
@google-oss-bot
Copy link

Hey @JankunChar. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@CLOUDFIRE91
Copy link

@paulinon i have tried to integrate and replace the old firebase files in my project. But it shows error. Did you have any solution for this problem. What is the current status. Did the problem has been solved. is there any update from your side...

@google-oss-bot google-oss-bot added stale Don't have recent activity and removed stale Don't have recent activity labels Aug 30, 2023
@google-oss-bot
Copy link

Hey @JankunChar. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@JankunChar
Copy link
Author

Hi Firebase Team Any updates... From your Side...

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed stale Don't have recent activity needs-info Need information for the developer labels Sep 6, 2023
@paulinon
Copy link
Contributor

paulinon commented Oct 5, 2023

Hi folks,

Apologies for the radio silence here. Could you try if the issue persists with the latest SDK version (11.5.0)? Does enabling both Custom Main Gradle Template and Custom Gradle Properties Template from your Player Settings > Publishing Settings make any difference?

If neither of these steps worked, could you provide your latest debug logs of your build after adding this line of code in your Start() function:

Firebase.FirebaseApp.LogLevel = Firebase.LogLevel.Debug;

@paulinon paulinon added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Oct 5, 2023
@google-oss-bot google-oss-bot added the stale Don't have recent activity label Oct 12, 2023
@google-oss-bot
Copy link

Hey @JankunChar. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@JankunChar
Copy link
Author

@paulinon I am very highly disappointed .. So i left the sms and activated Email in my app... Did you solve that problem. kindly answer me. I did not tested any new version. Previously i have posted one error.

IIn My Android Project there is no folder Assets/Plugins/Android/Firebase.androidlib folder that contains AndroidManifest.xml,

did you solved that error in new firebase version??? actually when i convert quick start master in ios build .. asset/plugin/android/firebase.androidlib folder will created.... so some one mention that is the major problem.

did you solved that problem. our of curiosity i am asking. I dont have mindset to work again and make my life trouble again.

if you solve that problem.. kindly post me.. .. thanks for you radio silence.. ...........

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed stale Don't have recent activity needs-info Need information for the developer labels Oct 12, 2023
@argzdev
Copy link

argzdev commented Jun 4, 2024

Hey folks, this issue looks more like a configuration issue rather than the SDK itself. Please refer to our documentation for a step by step guide how to properly setup Firebase Authentication. For a sanity check, I tested our Firebase Phone Authentication using Firebase Auth version 11.9.0 and Unity Editor version 2022.3.24f1 and it works properly. I was able to receive SMS OTP correctly.

One thing to take note is that Firebase Phone Authentication requires app verification in order to work:

For Android:

To use phone number authentication, Firebase must be able to verify that phone number sign-in requests are coming from your app. There are three ways Firebase Authentication accomplishes this:

  • Play Integrity API
  • reCAPTCHA

For iOS:

To use phone number authentication, Firebase must be able to verify that phone number sign-in requests are coming from your app. There are two ways Firebase Authentication accomplishes this:

  • Silent APNs notifications
  • reCAPTCHA verification

Another tip for Android, If you're unable to setup Play Integrity API and would like to test receiving SMS OTP, you may use a device without Google Play Store to request an OTP via the reCAPTCHA process.

That said, I'll go ahead and close this thread.

@argzdev argzdev closed this as completed Jun 4, 2024
@argzdev argzdev removed the needs-attention Need Googler's attention label Jun 4, 2024
@firebase firebase locked and limited conversation to collaborators Jul 9, 2024
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

5 participants