從日誌信息上看,可能和Android的TARGET_SDK_VERSION = 30有關係,因為Google在11-1日後提審APP都必須升級到30,這個問題也是從這個版本開始的。
Pre condition, Condition to reproduce
Line SDK Version : 5.5.1 Android Version: Android 11
Issue/ Error Message details
從11月4日後開始,在線用戶反饋 調用LineLoginApi.getLoginIntent(),線上少數用戶頻繁出現INTERNAL_ERROR,卸載重裝後無法改善
Accompanying respective source code
public void login(int callbackId, String param) {
mCallBackKey = callbackId;
setListener();
try {
Intent loginIntent = LineLoginApi.getLoginIntent(mContext, mChannelID,new LineAuthenticationParams.Builder()
.scopes(Arrays.asList(Scope.PROFILE))
// .nonce("<a randomly-generated string>") // nonce can be used to improve security
.build());
((Activity)mContext).startActivityForResult(loginIntent, REQUEST_CODE);
} catch (Exception e) {
Log.e("ERROR", e.toString());
}
}
public void onLoginResult(Intent data) {
LineLoginResult result = LineLoginApi.getLoginResultFromIntent(data);
JSONObject jsonObj = new JSONObject();
try {
switch (result.getResponseCode()) {
case SUCCESS:
// Login successful
case CANCEL:
// Login canceled by user
break;
case INTERNAL_ERROR:
// Login error
break;
default:
// Login canceled due to other error
Log.e("ERROR", "Login FAILED!");
}
} catch (JSONException e) {
e.printStackTrace();
}
Reference information (Version / Platform/ environment)
Android手機用戶 Line SDK Version : 5.5.1 Android Version: Android 11
Similar posts
No similar posts