I'm trying to implement social media login in a CodenameOne app using Google+ as explained here but I can't get it to work.
Sometimes, I get a dialog with all the active google accounts on the device (there are multiple of them) after which I get a null pointer exception. From the adb logs, the NPE occurs because the getAccessToken() method of the GoogleConnect instance is null when I try accessing it in the loginSuccessful() callback.
Other times, the app simply freezes after calling GoogleConnect.doLogin() and there's nothing in the logs suggesting what is going wrong. Everything works fine in the simulator and on iOS.
Has anyone experienced similar issues and does anyone know how I can solve it?