line / line-sdk-starter-android Goto Github PK
View Code? Open in Web Editor NEWA starter app demonstrating usage of the LINE Android SDK.
License: Apache License 2.0
A starter app demonstrating usage of the LINE Android SDK.
License: Apache License 2.0
when I try to login in by the sample codes from this project, I always meet
the same error message as below:
jp.line.android.sdk.exception.LineSdkLoginException: error=FAILED_WEB_LOGIN, errorCode=401
can u help to check it ?
When I call authManager.logout(), how to know it logout success to me do something ?
When I call authManager.logout(), how to know it logout success to me do something ?
When my device do not install line app I login any account sucessfully but I install line app to device when login It notify error FAILED_A2A_LOGIN, please explain for me about that error. thanks
I'm using LINE sdk to develop LINE login in RN app. When I tested in various devices, I found that in android 5 the login form appears to be broken, the page style isn't loaded and the buttons aren't working. Below is the screenshot of the broken page:
In android other than 5 the login and authorization form works well. Is there any extra configuration for android 5? Any help is appreciated. 🙏
this is build message.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(jp.line.android.sdk.a) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(jp.line.android.sdk.a.a.a.b) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(jp.line.android.sdk.a.c.f) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(jp.line.android.sdk.a.c.c) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(jp.line.android.sdk.a.c.e) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Can i see the change log of SDK?
I have been logined successfully by web ,but failed by line app,I'm confused.
Line Login Platformにてログイン認証を実装する事になり、
「line-sdk-starter-android」のソースを参考にさせていただいています。
Lineの認証画面から復帰した時に以下のエラーが出て、ログインに失敗します。
FAILED_A2A_LOGIN errorCode=2
どういった原因が考えられますでしょうか?
以下は、該当するソースになります
LineAuthManager authManager = LineSdkContextManager.getSdkContext().getAuthManager();
authManager.login(this).addFutureListener(
new LineLoginFutureListener() {
@OverRide
public void loginComplete(LineLoginFuture future) {
Throwable cause = future.getCause();
if (cause instanceof LineSdkLoginException) {
android.util.Log.e(TAG, String.format("Error message: %s", cause.getMessage())); <- FAILED_A2A_LOGIN errorCode=2
}
}
});
What happened if my channel is still in developing status but the date is out of the date?
Does that would make login by line failed in some reason?
I created the channel for our app, and entered the required technical information, when I try to login in the demo, it shows the error, and no any log. Could you help me?
LineAuthManager authManager = LineSdkContextManager.getSdkContext().getAuthManager();
authManager.login(this).addFutureListener(
new LineLoginFutureListener() {
@Override
public void loginComplete(LineLoginFuture future) {
switch (future.getProgress()) {
case SUCCESS:
SharedPreferences settings = getSharedPreferences("lineauth", MODE_PRIVATE);
// Store credentials to, for example, send in a webview activity to a server.
// Developers should not have to worry about these values if they are only calling
// APIs from the Android application.
settings.edit()
.putString("mid", future.getAccessToken().mid)
.putString("accesstoken", future.getAccessToken().accessToken)
.putString("refreshtoken", future.getAccessToken().refreshToken)
.putLong("expire", future.getAccessToken().expire)
.apply();
displayCroutonOnMainThread("Logged in!", Style.INFO);
logger.info("Login success!");
break;
case CANCELED:
displayCroutonOnMainThread("Don't cancel login!", Style.ALERT);
logger.info("Login canceled!");
break;
default:
displayCroutonOnMainThread("An error occurred. Please try again.", Style.ALERT);
logger.info("Login error!");
break;
}
}
});
Hello,
When I tune up the line client login, this time directly press the back button, will stay in the progressbar interface, will not automatically shut down.
we changed our keystore setting in line developer website and our local build setting
before do that, our app only show line authorization once, and directly login later
after do that, our app show line authorization everytime login
we use line android sdk v1
cause=jp.line.android.sdk.exception.LineSdkLoginException: error=FAILED_A2A_LOGIN, errorCode=2
i try change Android Package Signature
myself keystore still occur FAILED_A2A_LOGIN
./android/debug.keystore still occur FAILED_A2A_LOGIN
and i add role
email address set official mailbox
and set LineID
Role is DEVELOPER
still occur FAILED_A2A_LOGIN,why?
please add more detail error description.
Now I am able to login LINE and display my username and profile picture when I click the "Try API" button. Next, I want to display my friend lists using apiclient.getFriends()
. Any sample code?
Anyone knows how to create a Java API to send LINE message to friends?
I got the skeleton code but I do not know how to implement it.
class LineMsg {
public void SendMsg(String username, String msg) {
//username is the friend name that I want to send a message to
}
}
Then I have a main method.
public void main(String[] args) {
LineMsg linemsg = new LineMsg();
linemsg.SendMsg("username of LINE friend","Hello World!")
}
Then I need to zip up as JAR file so my friend can import the JAR file and send LINE message to contacts. The purpose of doing this is to replace the SMS function which have high cost. So we want to send to our clients using the LINE method by Java code. If anyone knows how to implement, please give some ideas. Thanks.
Is clearLocalLoginInfo() a async method?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.