Skip to content

Feature Request: Add close button when launching directly to a specific module via startScreen #23

@VolkovsaVSA

Description

@VolkovsaVSA

Problem

When using Kick.launch(context, startScreen) to open a specific module directly (e.g., Control Panel), the back button () in the top-left corner does not function. Users are unable to close the Kick debug menu and return to the main application.

Current Behavior

  1. Kick.launch(context, startScreen = StartScreen(config, ModuleDescription.CONTROL_PANEL)) opens Control Panel directly
  2. The back button () is displayed but does not respond to taps
  3. Users have no way to dismiss Kick and return to their app

Expected Behavior

When launching directly to a specific module via startScreen, users should be able to close Kick. Two possible solutions:

Option A (Preferred): Display a close button (×) instead of back button () when there's no navigation history (i.e., when launched directly to a module)

Option B: The back button should close Kick entirely when there's no previous screen in the navigation stack

Use Case

We want to provide quick access to the Control Panel from an app shortcut (3D Touch / long press on app icon). Users should be able to:

  1. Launch directly into Control Panel
  2. Toggle feature flags
  3. Close Kick and return to the app

Environment

  • Kick version: 1.0.0-beta14
  • Platform: iOS & Android (Kotlin Multiplatform)
  • UI: Compose Multiplatform

Code Example

// Current usage that exhibits the issue
val startScreen = StartScreen(
    config = controlPanelModule.startConfig,
    moduleDescription = ModuleDescription.CONTROL_PANEL
)
Kick.launch(context, startScreen)

Workaround
Currently we launch Kick without startScreen and let users manually select the module from the list. The close button (×) works correctly on the modules list screen.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions