Google login is not working
TamilselvanMariyappan opened this issue · comments
Plugin(s)
- Analytics
- App
- App Check
- Authentication
- Crashlytics
- Cloud Firestore
- Cloud Messaging
- Cloud Storage
- Performance
- Remote Config
Version
5.3.0
Platform(s)
- Android
- iOS
- Web
Current behavior
Expected behavior
"Once clicked, the login is not working fine."
Reproduction
https://github.com/TamilselvanMariyappan/capacitor-firebase-plugin-demo/tree/Offshore-Dev-Demo
Steps to reproduce
https://github.com/TamilselvanMariyappan/capacitor-firebase-plugin-demo/tree/Offshore-Dev-Demo
"@angular/fire": "17.0.0",
"@capacitor-firebase/authentication": "5.3.0",
"rxjs": "7.8.0",
Other information
No response
Capacitor doctor
ionic cap build ios
Before submitting
- I have read and followed the bug report guidelines.
- I have attached links to possibly related issues and discussions.
- I understand that incomplete issues (e.g. without reproduction) are closed.
Please share more information. What exactly is not working?
In iOS, when attempting to log in to the Google account, only a loading message is displayed.
FYI: Our current branch is https://github.com/TamilselvanMariyappan/capacitor-firebase-plugin-demo/tree/Offshore-Dev-Demo.
The functionality works as expected on Android; we have validated it with fingerprints for the Firebase project as well. However, on iOS, we still encounter issues when trying to log in using Google.
@TamilselvanMariyappan You did not follow the installation instructions correctly. You need to add the CapacitorFirebaseAuthentication/Google
pod to your ios/app/Podfile
file, see: https://github.com/capawesome-team/capacitor-firebase/blob/main/packages/authentication/docs/setup-google.md#ios
Error
[capacitor] ✖ Updating iOS native dependencies with pod install - failed!
[capacitor] ✖ update ios - failed!
[capacitor] [error] Analyzing dependencies
[capacitor] [!] CocoaPods could not find compatible versions for pod "GoogleSignIn":
[capacitor] In snapshot (Podfile.lock):
[capacitor] GoogleSignIn (= 6.2.4, > 6.2.4)> 6.2.4)
[capacitor]
[capacitor] In Podfile:
[capacitor] CapacitorFirebaseAuthentication/Google (from ../../node_modules/@capacitor-firebase/authentication
) was resolved to 5.3.0, which depends on
[capacitor] GoogleSignIn (= 7.0.0)
[capacitor]
[capacitor] CodetrixStudioCapacitorGoogleAuth (from ../../node_modules/@codetrix-studio/capacitor-google-auth
) was resolved to 0.0.1, which depends on
[capacitor] GoogleSignIn (
[capacitor]
[capacitor]
[capacitor] You have either:
[capacitor] * out-of-date source repos which you can update with pod repo update
or with pod install --repo-update
.
[capacitor] * changed the constraints of dependency GoogleSignIn
inside your development pod CodetrixStudioCapacitorGoogleAuth
.
[capacitor] You should run pod update GoogleSignIn
to apply changes you've made.
[capacitor]
[ERROR] An error occurred while running subprocess capacitor.
capacitor sync ios exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
I cannot find the changes in your reproduction example.
Can you please check now? I have committed the changes.
You should only add the CapacitorFirebaseAuthentication/Google
pod, not Firebase/Messaging
and Firebase/Analytics
. The two are already added by the plugins.
Regarding the error: Do what the error message says. Run pod install --repo-update
in the ios/App
folder.
Removed Firebase/Messaging and Firebase/Analytics in the Podfile, but I still encounter problems with IOS Google login. Could you please share a branch that works for both Google and Microsoft login on iOS? It would be more helpful for our current project. Thanks in advance.
Just take a look at our Firebase Authentication demo app: https://github.com/robingenz/capacitor-firebase-authentication-demo