Conversation
eduzatoni
force-pushed
the
features/inline-inapp
branch
3 times, most recently
from
September 25, 2026 15:37
c004df2 to
baf8363
Compare
eduzatoni
force-pushed
the
features/inline-inapp
branch
from
September 25, 2026 15:39
baf8363 to
d4c4533
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Inline In-App Support
New Features
✨ Adds cross-platform inline in-app messaging support for Capacitor via a new
<emarsys-inline-inapp>custom element. The element measures its DOM position, delegates loading to the native Emarsys SDK, and forwards native completion, close, and app-event callbacks back as DOM events.Changes
src/inlineInAppElement.ts: Introduces theemarsys-inline-inappcustom element, includingloadInApp(viewId), frame measurement, z-index handling, resize/scroll updates, and native event routing.src/types/InlineInApp.ts/src/definitions.ts: Adds inline in-app types, plugin method definitions, and listener typing foremarsysInlineInAppHandler.src/index.ts: Registers the inline in-app custom element during plugin initialization and exports related utilities/types.ios/Sources/EmarsysPlugin/*: AddsloadInlineInAppsupport usingEMSInlineInAppView, native view insertion/positioning, transparent WebView handling, and event forwarding to JavaScript.android/src/main/java/com/emarsys/plugin/emarsys/*: AddsloadInlineInAppsupport usingInlineInAppView, native overlay positioning, transparent WebView handling, and callback forwarding to JavaScript.android/build.gradle: Addsandroidx.coordinatorlayoutdependency for native inline view layout support.src/__tests__/inlineInApp.test.ts: Adds jsdom tests for custom element registration, loading, z-index, event routing, multi-element behavior, and cleanup.src/__tests__/mockBridge.ts: Extends the mock bridge withloadInlineInApp.package.json/ lockfiles: Addsjest-environment-jsdomfor DOM-based tests.example-app/src/js/tab-inapp.js: Adds a demo button and inline element usage for loading inline in-app campaigns.example-app/src/js/tab-geofence.js: Adds a location permission request button to the example UI.README.md: Documents inline in-app support, usage, DOM events, sizing guidance, and WebView transparency requirements.PR Bot Information
Version:
1.31.51b6c3f570-b8f5-11f1-907a-09d3fae239ddpull_request.openedgpt-5.5