Ideas for Arc XP

Add postMessage event to powerups

When opening a powerup, the parent window can post a message to the iframe's window containing certain metadata, like the arc id, or really whatever you decide. The data can be available via a postMessage(), and if the powerup developer wants to use any of that data, they can add an event listener for "message." Then you can allow powerups to contain data about the story.

This would allow powerup developers to access data about the current story.

  • Joseph Kelly
  • Jun 12 2023
  • Future consideration
  • Attach files
  • Matt Nelsen commented
    17 Jun 03:28pm

    This would be very helpful. It'd be nice to have context for which Composer story the custom embed was opened in. I'd like to have access to the story ID, metadata, associated websites and sections, and user permissions.

  • Agneesh Dasgupta commented
    12 Jun, 2023 08:59pm

    This is a great idea and would be very useful for our users.