finschia-sdk icon indicating copy to clipboard operation
finschia-sdk copied to clipboard

The offline flag does not work as described

Open tkxkd0159 opened this issue 2 years ago • 0 comments

Summary of Bug

https://github.com/cosmos/cosmos-sdk/issues/15109

Version

Steps to Reproduce


For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned

tkxkd0159 avatar Feb 22 '23 03:02 tkxkd0159

Hi @JustinLim0318

Can you try using the latest version of the LINE SDK (4.0.2)? Some fixes were made to resolve some issues with Android 4.x.

Also, were you able to reproduce this in this starter as it is? I tested the starter on a Galaxy S4 and I didn't see this problem.

mrmaakun avatar Apr 13 '17 10:04 mrmaakun

Hi @mrmaakun

Thanks for the response. Yes im using SDK(4.0.2) the issue has been solved. There is another issue with the latest sdk. After logged in using LINE account, it does not redirect back to the app. I have to manually close the LINE app and redirect back to my app and the response status i get from onActivityResult is 'CANCEL'. Tested using the starter and having the same issue.

JustinLim0318 avatar Apr 14 '17 03:04 JustinLim0318

@JustinLim0318

We made another update to the SDK that may help resolve this issue. Can you try LINE SDK 4.0.4 to see if it resolves this problem?

mrmaakun avatar Apr 26 '17 08:04 mrmaakun

Hi @mrmaakun We have updated the SDK to the latest release 4.0.4 and we encountered another issue while starting activity for result with the login intent.

here is the code:

Intent loginIntent = LineLoginApi.getLoginIntent(view.getContext(), getContext().getResources().getString(R.string.line_channel_id)); startActivityForResult(loginIntent, LINE_REQUEST_CODE);

and here is the stack trace:

FATAL EXCEPTION: main Process: com.gobike.consumer.debug, PID: 1527 java.lang.NoSuchMethodError: No static method startActivity(Landroid/app/Activity;Landroid/content/Intent;Landroid/os/Bundle;)V in class Landroid/support/v4/app/ActivityCompat; or its super classes (declaration of 'android.support.v4.app.ActivityCompat' appears in /data/app/com.gobike.consumer.debug-2/split_lib_dependencies_apk.apk:classes56.dex) at com.linecorp.linesdk.auth.internal.c$c.onPostExecute(SourceFile:1125) at android.os.AsyncTask.finish(AsyncTask.java:651) at android.os.AsyncTask.access$500(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:168) at android.app.ActivityThread.main(ActivityThread.java:5845) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)

zack-barakat avatar Apr 27 '17 08:04 zack-barakat

+1

XAVlER-S avatar May 03 '17 05:05 XAVlER-S

@mrmaakun Hi, mrmaakun, this problem is caused by Google changing ActivityCompat's API. ActivityCompat#startActivity is removed in the latest version. Will you please upgrade appcompat lib of line sdk and sample to fix this problem? thx :)

XAVlER-S avatar May 03 '17 11:05 XAVlER-S

Hi @XavierSAndroid , Thank you for the reply. I upgraded to the appcompat latest version com.android.support:appcompat-v7:25.3.0, and I still have the same issue. Is it updated already in the latest version of the line sdk?. Thank you

zack-barakat avatar May 04 '17 03:05 zack-barakat

@zack-barakat my bad. I should have given this information to developers of this lib : )

XAVlER-S avatar May 04 '17 05:05 XAVlER-S

Any expected date for new update?

cchitsiang avatar May 04 '17 13:05 cchitsiang

Thanks for bringing this issue up. We will look into it and try to have something in the next week or so.

mrmaakun avatar May 08 '17 03:05 mrmaakun

I apologize for the wait. We released LINE SDK for Android version 4.0.5 to the developer center. This version should fix the startActivity problem. Please check it out.

mrmaakun avatar Jun 02 '17 08:06 mrmaakun

@mrmaakun Thank you for your response. will try out the latest SDK and let you know if it has been solved.

zack-barakat avatar Jun 02 '17 08:06 zack-barakat