-
-
Notifications
You must be signed in to change notification settings - Fork 56
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 Authenticate using Facebook, Twitter, Google, etc #36
Comments
Hi, |
I'm a beginner in Firebase and FB4D. Maybe only after some time learning both, I can do something :) |
I checked the sources of FB4D and Firebase Authentication manuals. PS/ I took FB4D for use at my android app. Hopefully, in few days first results. |
I keep this change request on the wish list but it has no priority. Thank you for understanding. |
I have implemented yet the required interface IFirebaseAuthentication.SignInWithOAuthCredentials and in IFirebaseUse the getter methods OAuthProviderId, OAuthFederatedId, OAuthIdToken, OAuthAccessToken, OAuthTokenSecret, and OAuthRawUserInfo. @SergioDragon: Can you test now this function? |
Did you try this one: https://github.com/grijjy/DelphiGoogleSignIn ? |
https://github.com/grijjy/DelphiGoogleSignIn is a good solution, |
The DelphiGoogleSignIn is just a wrapper over the Firebase SDK running on Android Devices. With FB4D, I'm taking a different approach: a true cross-platform library for Firemonkey and VCL. @VanarGames: If you have a commercial project and/or want to discuss ways of collaboration, feel free to contact me by mail at webmaster @ Schneider - Infosys . ch. |
@VanarGames I.e. I can't use TBannerAD with DelphiGoogleSignIn? o_O |
Quite right! |
But how can this be related? 🤔 |
But how can this be related? |
@SchneiderInfosystems, could you please explain where I can get data for fields Can't find it on my console.cloud.google.com 😕 |
Unfortunately, I did not find time to write an example yet. That is why I do not know all answers yet. The As I understand, you have firstly to sign in to the google account. From this, I would expect, that you get the Here you find additional information from the Firebase Rest API: |
Thanks for info! Clearing up a bit now. |
Hm... Is string (generated by FB4D) fully and correctly completed? String from FB4D:
... string from your link:
|
Oh, it seems, that I have mixed up the parameters. The parameters should be packed into a JSON object in the body and not in the URL. Only the API_Key should remain in the URL. Are you able to share your project with me so I can move faster? |
Sorry, I'm afraid it's impossible — the SignInWithGoogle function requires signing with a cert from the closed keystore, so you need create your own test-Android-project in https://play.google.com/console and https://console.firebase.google.com |
So, I did it. Finally 😎
|
@kazuser : Great news, congrats on this first success! My goal is to provide an understandable tutorial for a small test project that will be runnable not only on Android but on all platforms. I tried today to build the |
Thanks!
Of cource! Manual: https://blog.grijjy.com/2017/07/20/using-google-sign-in-for-firebase-sdk-on-android |
You have mixed the code from here |
|
Ok, one step ahead. Now I got this error when deploying on my device: [PAClient Error] Error: E2312 C:\Users\Christoph\Documents\Experimental\DelphiGoogleSignIn\Example.Firemonkey\Android64\Debug\GoogleSignIn\AndroidManifest.xml:33: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version'). I believe that is related to the chapter Getting Started Quick Steps. I made more researches in the meantime. What do you think kazuser? Cloud that brings the solution: |
Don't know what is it but you can try to delete "AndroidManifest.template.xml".
No. Please check email.
I think a built-in solution will be the best for sure! https://github.com/grijjy/DelphiGoogleSignIn was just for testing :) |
I was able to successfully implement the second part by taken the auth code from the android app GoogleSignIn: Unfortunately, I have no idea how to implement the first request, @kazuser: Pls check your mailbox but this state is newer than the mail I sent. |
Well done! 👍
What is "the first request"? I think we need to sync somehow 😅 How I see it: So you have 2 & 3 steps now, am I right? :) |
Hello,
Are you planning to add to FB4D support of Firebase Authenticate using Facebook, Twitter, Google, and other methods offered by Firebase?
The text was updated successfully, but these errors were encountered: