Skip to content

MOBILEWEBVIEW-7: add back action#674

Merged
enotniy merged 2 commits intomission/webview-inappfrom
feature/MOBILEWEBVIEW-7
Feb 6, 2026
Merged

MOBILEWEBVIEW-7: add back action#674
enotniy merged 2 commits intomission/webview-inappfrom
feature/MOBILEWEBVIEW-7

Conversation

@enotniy
Copy link
Collaborator

@enotniy enotniy commented Feb 6, 2026

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds back button handling functionality to WebView in-app messages, allowing users to navigate back within the WebView content when the system back button is pressed.

Changes:

  • Added BACK action type to WebViewAction enum for WebView back navigation
  • Implemented OnBackPressedCallback registration and handling in WebViewInAppViewHolder
  • Refactored timer management with extracted startTimer() and stopTimer() methods for improved code organization

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
WebViewAction.kt Added new BACK action enum value for back navigation handling
WebViewInappViewHolder.kt Implemented back button callback registration, sending back actions to WebView, and refactored timer management
InAppMessageViewDisplayerImpl.kt Extended MindboxView interface with registerBack() method and implemented back button dispatcher registration
kmp-common-sdk Updated subproject commit reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

onContentLoaded(
layer.contentUrl?.let { contentUrl ->
runCatching {
gatewayManager.fetchWebViewContent(contentUrl)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sergeysozinov обрати внимание, тут переписал. Вынес запрос в gatewayManager

@enotniy enotniy merged commit 1bb636b into mission/webview-inapp Feb 6, 2026
5 checks passed
@enotniy enotniy deleted the feature/MOBILEWEBVIEW-7 branch February 6, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants