Skip to main content

[Embed Widget] Lifecycle hooks for embedded portal/iframe

I want lifecycle hooks (e.g., on-load, on-resize, state changes) for the embedded portal/iframe version. This is important because we need to sync the portal's appearance and behavior with our parent application, and it's a requirement for our Enterprise integration.
Post type
💡 New feature
What part?
Widget
1 comment

Log in to comment and vote

Comments1

  • Robert Gründler

    •

    Mar 31

    Actually it’s about your javascript sdk which we have to load at runtime from your cdn instead of providing us with proper npm packages - opening up supply chain attacks the moment your cdn / infra gets compromised (see

    https://feedback.featurebase.app/u/653f7699b340eba0202dcd1e)

    To sandbox your SDK, we plan to create a dedicated app that loads your sdk at runtime, and completely sandbox it as much as possible into a dedicated iframe on a dedicated domain.

    However, since the featurebase client decides when to interact with the user (e.g. when to show a survey etc), the parent of the iframe does not know when to show / hide the iframe.

    If your sdk would emit postMessage() events, we could react to it.