Giter VIP home page Giter VIP logo

Comments (3)

onevcat avatar onevcat commented on July 25, 2024 1

It seems that LINE SDK for Flutter did not get a chance to handle the login result. By default, LINE SDK for Flutter would register itself as an application delegate. If everything goes fine, its application(_:open:options:) method will be called when navigated back to your app. It takes responsibility of receiving the auth code URL and continue the login. You can try to add a break-point there to see if it can be hit. (I guess it won't happen.)

The most possible reason, if you are not modifying the Flutter Runner project yourself, is one or more of other plugins also listen to this method, but returning a wrong value: once one of these "open url listeners" returns a true, the system would think it has found a handler for this URL and won't call other listeners anymore. So, you may need to check which of your other plugins is playing this bad-boy role and intercepts LINE's URL.

Tips:

If you are calling LineSDK.instance.setup("${your_channel_id}") after some other plugins' setup method, a quick way now is making LINE's setup happens at the first. But it won't really "fix" a potential issue in other plugins, you still need to try to find it later.

from flutter_line_sdk.

crosser2020 avatar crosser2020 commented on July 25, 2024

Hi! Thanks for your reply.

This issue is only happened in iOS. Android is working perfectly.
It's occurred when user has a LINE app in their iOS device in this flow.
LINE app opened -> Accept Auth -> Open the app(open our app - CROSSER) -> PlatformException(3003, User cancelled or interrupted the login process., [:], null).

I have changed the LineSDK.instance.setup("${your_channel_id}") calling location before calling other plugin's setup method but it's still not working in iOS.

It would works when user has no LINE app in their device.

from flutter_line_sdk.

onevcat avatar onevcat commented on July 25, 2024

It is not reproducing at all, so I am guessing it is a very rare case or environment related. Until we can get more information on this, I am closing it since there is no more we can help.

Before that, I would suggest set onlyWebLogin (https://pub.dev/documentation/flutter_line_sdk/latest/flutter_line_sdk/LoginOption/onlyWebLogin.html) to prevent using LINE and only open a web view to perform the login.

from flutter_line_sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.