GoogleAuth" plugin is not implemented on ios and android
Hi,
I cannot perform a Google Login in ios and android app using the plugin.
I followed all instructions in this post https://github.com/CodetrixStudio/CapacitorGoogleAuth/issues/116 but I am still getting "GoogleAuth" plugin is not implemented on ..." On web everything is working ok. But I noticed, that it seems the plugin is not copied over by capacitor, because my output from "nx run mobile-app:sync:ios" is looking like this (also for android): `> nx run mobile-app:sync:ios
✔ Copying web assets from mobile-app to ios/App/App/public in 848.86ms ✔ Creating capacitor.config.json in ios/App/App in 2.07ms ✔ copy ios in 865.06ms ✔ Updating iOS plugins in 4.48ms ✔ Updating iOS native dependencies with pod install in 4.87s ✔ update ios in 4.90s [info] Sync finished in 5.777s
———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
NX Successfully ran target sync for project mobile-app`
My pacakge.json `...
"dependencies": { "@abacritt/angularx-social-login": "^1.2.2", "@angular/animations": "~13.3.0", "@angular/common": "~13.3.0", "@angular/compiler": "~13.3.0", "@angular/core": "~13.3.0", "@angular/forms": "~13.3.0", "@angular/platform-browser": "~13.3.0", "@angular/platform-browser-dynamic": "~13.3.0", "@angular/router": "~13.3.0", "@capacitor/core": "^3.2.2", "@codetrix-studio/capacitor-google-auth": "^3.1.4", "@ionic/angular": "^5.8.3", "@ionic/cli": "^6.20.1", "@nestjs-modules/mailer": "^1.7.1", "@nestjs/cli": "^8.2.8", "@nestjs/common": "^8.0.0", "@nestjs/core": "^8.0.0", "@nestjs/jwt": "^8.0.1", "@nestjs/mongoose": "^9.0.3", "@nestjs/passport": "^8.2.1", "@nestjs/platform-express": "^8.0.0", "@nestjs/typeorm": "^8.0.3", "@ngrx/component-store": "~13.0.0", "@ngrx/effects": "~13.0.0", "@ngrx/entity": "~13.0.0", "@ngrx/router-store": "~13.0.0", "@ngrx/store": "~13.0.0", "argon2": "^0.28.5", "bcrypt": "^5.0.1", "class-transformer": "^0.5.1", "class-validator": "^0.13.2", "crypto-js": "^4.1.1", "deep-copy-ts": "^0.5.4", "deepcopy": "^2.1.0", "ejs": "^3.1.8", "email-templates": "^10.0.0", "handlebars": "^4.7.7", "luxon": "^3.0.1", "moment": "^2.29.4", "mongoose": "^6.3.3", "mysql2": "^2.3.3", "nodemailer": "^6.7.6", "passport": "^0.5.3", "passport-jwt": "^4.0.0", "passport-local": "^1.0.0", "pug": "^3.0.2", "reflect-metadata": "^0.1.13", "rxjs": "~7.4.0", "swiper": "^8.2.4", "tslib": "^2.0.0", "typeorm": "^0.3.7", "zone.js": "~0.11.4" } `
Do you have an idea how to fix that? (This is what I did basically: https://www.youtube.com/watch?v=GwtpoWZ_78E) The Plugins for ios and android don´t seem to become detected, which can be an indicator for an incompatibility in the npm package.
Additionally Google prompted me this into console: "You have created a new client application that uses libraries for user authentication or authorization that will soon be deprecated. New clients must use the new libraries instead; existing clients must also migrate before these libraries are deprecated. See the Migration Guide for more information."
Can it be, that the used lib isn´t vivid anymore or undergoing a huge makeover?
Any information, when this project becomes updated? My issue seems to be a compatibility problem and after I changed my dependencies I get this "Something went wrong" error, which is going back on incompatibility between "@codetrix-studio/capacitor-google-auth": "^3.1.4" and capacitor in ver. 4.
Since I would run in other incidents downgrading capacitor is not an option.
New error: ` nx run mobile-app:sync:ios
✔ Copying web assets from mobile-app to ios/App/App/public in 653.21ms ✔ Creating capacitor.config.json in ios/App/App in 969.92μs ✔ copy ios in 663.34ms ✔ Updating iOS plugins in 2.43ms ✖ Updating iOS native dependencies with pod install - failed! ✖ update ios - failed! [error] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin21/rbconfig.rb:230: warning: Insecure world writable dir /Users/heiko/Library in PATH, mode 040707 Analyzing dependencies [!] CocoaPods could not find compatible versions for pod "Capacitor": In Podfile: Capacitor (from ../../../../node_modules/@capacitor/ios)
Specs satisfying the Capacitor (from ../../../../node_modules/@capacitor/ios) dependency were found, but
they required a higher minimum deployment target.
ERROR: Something went wrong in @nrwl/run-commands - Command failed: npx cap sync ios`
My new dependencies:
"devDependencies": { "@capacitor/android": "^4.0.1", "@capacitor/cli": "^4.0.1", "@capacitor/ios": "^4.0.1", "@ionic/cli": "^6.20.1", }, "dependencies": { "@capacitor/app": "^4.0.1", "@capacitor/core": "^4.0.1", "@capacitor/haptics": "^4.0.1", "@capacitor/keyboard": "^4.0.1", "@capacitor/status-bar": "^4.0.1", "@codetrix-studio/capacitor-google-auth": "^3.1.4", }
Finally I solved my problem, by updating to capacitor 4 and wait for 3.2.0 of this library. Additionally I found out, that you should have all the plugins in your package.json of your ionic project and not only in your workspace package.json, when working with NX monorepo Here is my file `
{ "name": "mobile-app", "devDependencies": { "@capacitor/cli": "4.0.1" }, "dependencies": { "@capacitor/android": "4.0.1", "@capacitor/app": "4.0.1", "@capacitor/core": "4.0.1", "@capacitor/haptics": "4.0.1", "@capacitor/ios": "4.0.1", "@capacitor/keyboard": "4.0.1", "@capacitor/status-bar": "4.0.1", "@codetrix-studio/capacitor-google-auth": "^3.2.0", "jwt-decode": "^3.1.2" } }
` Now all plugins become synced to the android and ios app