Inconsistent default bot prompt behavior between Android and iOS
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 225
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
When calling LineSDK.instance.login() without a LoginOption, the plugin handles botPrompt differently across platforms:
- Android: Defaults to "normal".
- iOS: Leaves botPromptStyle as nil, omitting bot_prompt from the authorization request.
This can cause different add-friend prompt behavior for the same Flutter login call.
Expected behavior
Default to "normal" on both platforms when no value is provided, while preserving explicitly supplied "normal" and "aggressive" values.
Proposed fix
Apply the "normal" fallback when reading botPrompt in the iOS plugin.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the iOS plugin path used by LineSDK.instance.login() when no LoginOption is supplied, and trace how botPrompt is read before the authorization request. Verify that the fallback is "normal" while explicitly supplied "normal" and "aggressive" values remain unchanged; done means matching Android behavior for default and explicit values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter, ios
- Domain
- authentication, mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100