Udinic / AccountAuthenticator

812 stars 216 forks source link

two app with same account #11

Open moshtagh opened 8 years ago

moshtagh commented 8 years ago

If we install both sample applications on single android device, only the first one can create account. It seems that application with shared account should use same "android:sharedUserId".

csabdulahad commented 8 years ago

you mean only one account can be signed in or be used at a time?

moshtagh commented 8 years ago

@ahadxfighter no, I mean only the first installed app has permission to show login activity and create account; try install both sample apps in Udinic/AccoutAuthentictor, then use both of them separately to create account. Only one app can do.

csabdulahad commented 8 years ago

yes. I followed his code, and it is working fine. But since firebase out there, it does not seem helpful managing account for your app. What do you think?

moshtagh commented 8 years ago

Please take a look at [https://www.captechconsulting.com/blogs/Android-Single-Account-Multiple-Application-Prescription] I think it is dose not matter whether use of firebase or not.

santoki-darshan commented 6 years ago

I don't know what happened but it wasn't working yesterday but it's working fine today with two apps having the same account.

1136066873 commented 5 years ago

I just want to know how you use this AccountManager on multiple applications, because I found that if both applications depend on the AccountAuthenticator library and the two application signatures are different, then in the first application After logging in to the successful account and saving the token, in the second application, it is impossible to obtain any token after the first application login successfully in AccountAuthenticator, but when I sign the same signature information for the two applications, this is OK. of. Both applications can share account information together. Have you ever encountered this problem?

santoki-darshan commented 5 years ago

Yeah, that's true.