Ideas for Arc XP

Home| Documentation| Support|

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
      Drop here to upload
    • Matt Nelsen commented
      17 Jun 15:28

      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
      June 12, 2023 20:59

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