java - App won't sign into google account from phone, but ok from emulator -


i working on app using google account sign feature, when running on emulator, logs in google service account, once install in phone doesn't work.

if (requestcode == rc_sign_in) {     googlesigninresult result = auth.googlesigninapi.getsigninresultfromintent(data);     if (result.issuccess()) {         log.d(tag,"success");         googleaccount = result.getsigninaccount();     } else{         log.e(tag,"fail");     }     updateui(); } 

so, success code above when using emulator, getting fail when using phone.

[googleaccountdataserviceimpl] gettoken() -> network_error. account: <ellided:xxxxxxxxxx>, app: com.xxxxx.xxxxxx, service: oauth2:email openid profile 

my phone's wifi off. turned on , worked fine


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -