Robert,
I added the event listener to the init of widget2 and the function to that event listener. But still it doesn't work, the function never runs.
My knowledge about AppEvents are limited, but I'm thinking that the event listener is added after the event is dispatched and therefor nothing happens. But if this code work for you, I guess it should work for me to, but it doesn't...
What's the difference between AppEvent.DATA_PUBLISH and AppEvent.DATA_SENT?
The data that is added from addSharedData in widget1 has to be stored somewhere, is there no way to access it from widget2 without any event listeners??