-
Notifications
You must be signed in to change notification settings - Fork 1
Description
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
Kick.launch(context, startScreen = StartScreen(config, ModuleDescription.CONTROL_PANEL))opens Control Panel directly- The back button (
←) is displayed but does not respond to taps - 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:
- Launch directly into Control Panel
- Toggle feature flags
- 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.