line / line-sdk-starter-android-v2

A starter application that demonstrates how to use LINE SDK V2 for Android.
MIT License
35 stars 27 forks source link

Login failed #12

Open kmzhao opened 7 years ago

kmzhao commented 7 years ago

hi , First I use first phone to log in . Then I use second phone to log in the same id;
This time, I was in the first mobile phone, with my own app call line client login time, will report

 Error
 An unknown error occured

The dialog box.

FrancescoJo commented 7 years ago

I bumped into a same error message and fixed the problem Googling about 2 hrs without any clues. I finally figured out that I misspelled my SHA1 fingerprint in app dashboard page.

FYI, The main reasons of this error are:

1. Channel ID mismatch 
2. Application package name mismatch
3. Android SHA1 Package Signature mismatch
4. Your app status in LINE business centre is DEVELOPING
   (Only the users with 'DEVELOPER' or 'CHANNEL_EDITOR' role can use login integration).

Here is my suggestion to LINE corporation.

Could you guys elaborate the reason why our integration with LINE is failed in LineApiError class, rather than this cryptic An unknown error occurred message? It would be our great timesaviour whilst the error message is more intuitive and concise.

For example, I could fix the problem in very short time if the hidden error cause was like this: An unknwon error occurred(Your SHA-1 fingerprint mismatches). Please consider this opinion. Thanks.

erictjitra commented 5 years ago

If your app is still set to "developing" mode in the Line developer console, then you might need to add the Line user you're using to login into the testers or admin list.

jackzhp commented 3 years ago

"Android SHA1 Package Signature mismatch"?

I don't see where to set this up. And in this repository, there is no SHA1 related stuff, either.

sorry. I just did not pay attention. It was besides the package name.

jerald-jacob commented 3 years ago

If your app is still set to "developing" mode in the Line developer console, then you might need to add the Line user you're using to login into the testers or admin list.

It's solved my issue Thanks @kmzhao try this one