Giter VIP home page Giter VIP logo

Comments (3)

JW-chenjingwei avatar JW-chenjingwei commented on August 29, 2024

已解决,需要添加 pod 'LineSDKSwift/ObjC', '~> 5.0'

from flutter_line_sdk.

onevcat avatar onevcat commented on August 29, 2024

默认情况下 LINE SDK 是会处理 openURL 的,但是前提是 app (或者说 Flutter) 确实把这个调用传递给了 LINE SDK。各个插件需要向 Flutter 注册表示自己希望处理 openURL;在 app 收到一个 URL 时,Flutter 会顺次询问各个插件,是否能进行处理。

这类问题,大概率是别的插件错误地实现了 application:(UIApplication *)application openURL 方法,针对 LINE SDK 的 URL,它也返回了 true,表示这个 url 已经被处理了。遇到这种情况时,Flutter 就不再会继续向其他插件进行询问,导致 LINE SDK 无法收到 URL,从而登入失败。

个人的建议是寻找一下是哪个插件的实现出现了错误,然后向他们提交 issue,会比直接在一开始添加 LoginManager.shared.application(app, open: url) 要更“正确”一些。

from flutter_line_sdk.

JW-chenjingwei avatar JW-chenjingwei commented on August 29, 2024

明白,感谢大佬的指导

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.