cordova-plugin-googleplus icon indicating copy to clipboard operation
cordova-plugin-googleplus copied to clipboard

Temporary freeze on a first call to the plugin on Android

Open Zvika88 opened this issue 7 years ago • 7 comments
trafficstars

Did anyone experience a freeze on android for ~ minutes on the first call to the plugin? I am using ionic v1 (v 1.3.4) . The $ionicPlatform.on(“resume” event fires right away after the user selected his google profile, but the success function in window.plugins.googleplus does not get executed immediately. In fact nothing happens for ~2 minutes, after which the success function is called with the proper google user details.

This happens ONLY on the first time that the app is used after a fresh install on a device . Consecutive logout then login are executed normally with no such delays. But if you uninstall the app, then re-install, then the first login will have this 2 minutes freeze.

I tried building with cordova 6.5.0, 7.1.0 or 8.0.0 , same result. Tried target android 6.3.0 or 7.0.0 same result.

The app uses firebase plugin (cordova-plugin-firebase) so I have the firebase and support libraries set to 11.8.0 . Removing the firebase plugin made no difference. Removing other plugins made no difference either.

It is likely to be a cordova/android issue as similar behavior started also with facebook login plugin, but I am have no idea what to try next. BTW it works normally for iOS.

Both the facebook and the google plus plugins behaved normally up to few days ago. There was no change, no adding plugins or changing versions or even installing any Mac updates, yet they now both exhibit this 2 minutes delay problem.

Does anyone have any ideas or suggestions?

Zvika88 avatar Jun 24 '18 10:06 Zvika88

I'm with the same issue here, but only with google plus, the facebook login is working fine. Do you have any success with it?

juliacteixeira avatar Jul 16 '18 11:07 juliacteixeira

Struggling with the same. Any clues?

tbillson avatar Aug 27 '18 01:08 tbillson

@Zvika88 Can you solve this problem? I also encountered the same problem.

UTSOURCE avatar Sep 12 '18 09:09 UTSOURCE

Same issue with FB plugin - just started happening, Android - 2mins+ to login....very weird. seems to be same as this https://stackoverflow.com/questions/51007827/cordova-app-with-facebook-or-google-login-waits-2-minutes-before-returning-resul

rogerhaw avatar Mar 09 '19 01:03 rogerhaw

I removed the Android and the Cordova from the project and added again. Fixed it. Don't give up, as this plugin is one of trickiest I've encountered but also one of the most useful. Devil's in details

tbillson avatar Sep 15 '19 14:09 tbillson

I also ran into this issue. Spent a whole day pulling my hair out over this but it just went away on its own after a few hours. I know it had nothing to do with any build changes or anything because it was affecting our production build as well and it came and went with no changes there. This doesn't exactly inspire confidence, but the plugin appears to work as expected most of the time at least.

pschinis avatar Sep 18 '19 16:09 pschinis

@Zvika88 could you find a solution to this problem?

CodeWithOz avatar Jun 08 '21 06:06 CodeWithOz