Skip to main content
Participant
June 5, 2024
Question

Sharing information between hosted app and add-on

  • June 5, 2024
  • 1 reply
  • 436 views

Hi everyone,

 

I am developing an add-on that allow user to import medias (videos/images). We integrated adobe express embedded sdk into our platform. User gonna log into to our platform and use adobe express (full editor mode). The add-on gonna fetch and show all available videos/images from user. To do this, user also need to login again one more time in the add-on to be able to get data.

 

Do you have any ideas or suggestion so that user don't have to log in 2 times (to platform & to add-on)? I'm thinking somehow passing access_token information to adobe express embedded editor and access it from addOnUISdk object on the add-on side but it seem impossible?

 

Any helps would be really appreciated!

 

 

 

1 reply

Adobe Employee
June 6, 2024

Hi, you can't pass arbitrary data to Express and then to add-on. You can achieve the required behaviour using browser cookies/local-storage/etc.

Participant
June 10, 2024

Hi, Thanks a lot for your reply. One thing I'm concern is the add-on, and hosted app may being deployed on different domain. And it's may need to do some work-around on the add-on to access local storage from cross-domain. Is this pratice ok when develop an Express add-on?

Adobe Employee
June 10, 2024

So you can open a popup window from add-on and the popup window location could be any domain. For this, you need to mention a permissions in add-on manifest - allow-popups