Hi Team,
I checked with below version of plugin.
Plugin Version : 8.4.0, 5.3.2, 5.0.3
MABS Version : 5.2 and 6.1
I got an below error also i have attached error log.
[ERROR] Build failed with the following error: Error installing Cordova plugin: cordova-plugin-googleplus': Error: Cannot find module 'q.
also i have raised ticket to outystems support they gave follow finding.
Failed to install 'cordova-plugin-googleplus': Error: Cannot find module 'q' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at module.exports (/Users/mabs04/NativeBuilder/builds/fc24aa3e-63d7-4ab6-b173-313c335e702c/source/plugins/cordova-plugin-googleplus/hooks/ios/prerequisites.js:5:18) at runScriptViaModuleLoader (/Users/mabs04/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:188:18) at runScript (/Users/mabs04/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:164:16) at /Users/mabs04/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:132:20 at _fulfilled (/Users/mabs04/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/Users/mabs04/.nodenv/versions/8.14.1/lib/node_modules/cordova/node_modules/q/q.js:816:30) Google Sign-In prerequisites Error: Cannot find module 'q'
So help me to resolve this issue.
Hi Swapnil,
Please see this post
https://www.outsystems.com/forums/discussion/25867/how-to-configure-the-google-plus-login-plugin-for-android/#Post207815
or maybe give this plugin a try
https://www.outsystems.com/forge/component-overview/7895/social-login-mobile
The forum discussion Tarun has shared which says the version 7.0.2 working for both Android and iOS. Did you tried this.
Hi Pankaj
Its not working for 7.0.2
Hi Tarun / Pankaj,
Please check below case for the same.
CASE - 1
MABS Version : 6.1 Google Plugin Version : 7.0.2
Plugin URL : https://github.com/EddyVerbruggen/cordova-plugin-googleplus#7.0.2
App Generation :
Android : Generated successfully
iOS : Generated successfully
Plugin Functionality :
Android : does not working
iOS : Not able to check
For functionality Please check android screen shots for the same.
This is an common social login page for google and facebook. After click on Login with google button. Plugin is not executed with functionality and application got stuck on same page.
CASE - 2
MABS Version : 6.1 Google Plugin Version : 8.4.0
Plugin URL : https://github.com/EddyVerbruggen/cordova-plugin-googleplus#8.4.0
iOS : Not Generated got below error.which mentioned earlier in this forum. You can refer earlier attached error log.
Android : Working
iOS : Not able to check because application is not generated
After click on login with google button below google plugin execute and shows below popup and ask for login
After select an account or login with another gmail account. User can goes to next step and shows prefilled form with gmail account information like name and gmail id.
Please check screenshot for the same. After this execution of google functionality is finished.
After submit user can successfully login into application.
Case - 3
Now, Google functionality is working on production with below plugin URL
https://github.com/EddyVerbruggen/cordova-plugin-googleplus#5.0.3
MABS Version : 5.2 Plugin Version : 5.0.3
Same thing replicate in dev env and check the application. We got below result.
Android : does not working(Same replica of case 1)
Also I have attached doc file for the same.
Kindly check and please revert if you have any doubts or solution for the same.
Thank you !