Comments (3)
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.
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.
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)
- How to get email when using api for retrieving and verifying tokens? HOT 1
- 3003错误 HOT 3
- flutter line sdk-1.3.0 'flutter line sdk/flutter line sdk-Swift.h' file not found HOT 3
- How can I get line_id of my account when I logged in with Line Login? HOT 1
- flutter_line_sdk iOS 10.0 or later as the deployment target HOT 3
- APK compilation failed due to conflict with inappwebview HOT 6
- Could not resolve all dependencies for configuration HOT 2
- [iOS] Signing for "LineSDKSwift-LineSDK" requires a development team HOT 2
- Duplicate class androidx.lifecycle.ViewModelLazy error when just adding the library to pubspec.yaml HOT 2
- Cannot resolve Android's dependency HOT 4
- The pubspec.lock should not be contained in this repo HOT 1
- Android Studio emulator can't open the login page HOT 4
- 403 forbidden HOT 5
- [iOS] Login line account auto switch from line app to line web HOT 9
- INTERNAL_ERROR, OpenId issuedAt is after current time: Thu Dec 21 15:07:50 GMT+07:00 2023, HOT 1
- [Feature] get phone number from app login HOT 2
- Could not find androidx.lifecycle:lifecycle-extensions:2.5.0.
- Want minSdkVersion to revert to 21 HOT 1
- Cancel / OK Button Event HOT 3
- Execution failed for task ':flutter_line_sdk:compileDebugKotlin'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_line_sdk.