device - Android : Google sign in api returning Null -


i followed tutorial on how use google sign in in app , working fine in emulator.

when created signed apk release type , send sister via email check if able login, after selecting user account login not able login. google api returns null during login process.

 private void showsignedinui() {     // todo: start making api requests.     try {         if (plus.peopleapi.getcurrentperson(mgoogleapiclient) != null) {             person currentperson = plus.peopleapi                     .getcurrentperson(mgoogleapiclient);             string personname = currentperson.getdisplayname();             string personphotourl = currentperson.getimage().geturl();             string persongoogleplusprofile = currentperson.geturl();             string emailuser = plus.accountapi.getaccountname(mgoogleapiclient);              log.e(tag, "name: " + personname + ", plusprofile: "                     + persongoogleplusprofile + ", email: " + emailuser                     + ", image: " + personphotourl);               collectdetails cd = collectdetails.getinstance();             cd.setusername(personname);             cd.setemailaddress(emailuser);              personphotourl = personphotourl.substring(0,                     personphotourl.length() - 2)                     + profile_pic_size;             cd.setphotourl(personphotourl);              intent myintent = new intent(googleplayservicesactivity.this, homescreenactivity.class);             startactivityforresult(myintent, 0);         } else {             toast.maketext(getapplicationcontext(),                     "person information null", toast.length_long).show();         }     } catch (exception e) {         e.printstacktrace();     } 


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -