Closed ricklang closed 5 years ago
The code looks fine to me. Can you link me to somewhere I can try it out?
Actually you can run my application from https://smarttest.csosadev.net. Look at the console log for the error message.
Looks like it's making me log in -- can you make this app public for a while?
Sorry about that. I don't want to disable the authentication because it might be culprit that caused the problem. You can use user: rathi.krish@csosadev.net pwd: Qocu72548 to login.
Do worry everything there is "fake" data.
Looks like you have different versions of post-robot in the parent and child windows.
Oh, sorry. Because it was working for post-robot v8.0.30 when I was using Angular 5. so I was trying to see whether it is the version issue. I will make the two using the latest post-robot and will let you know when it is done.
Ok, both applications are using post-robot 10.0.10 now.
Hmm nope, I still see an old version in the parent window
How do you see the version?
window.__postRobot__
is only defined for older versions
Thanks, you are right. It is the version issue. Angular 7 build has some changes which causes my CI/CD on Azure DevOps actually failed, though it reported as successfully deployed.
I can confirm the issue about version mismatch even with patch updates, we encountered this one with a parent using 10.0.14 (master) and child using 10.0.10.
I have two Angular web applications. App_A is like a listener and will set/get the data in its sessionStorage when receiving messages. App_B is like a client and will send message to App_A. App_A and App_B are running in different domains.
At the startup the App_B will try to load App_A into an iframe. The communication was working properly in the past. Recently I upgraded the Angular for v5 to v7 and the latest post-robot. Everything was still working fine when testing in local environment. But after I deployed both App_A and App_B to Azure web services, I got the error "Window did not load after 5000ms" when running App_B in a browser. Also if I only deploy App_A to Azure, and running App_B in the local, everything works fine. Do you have any idea what might be the problem(s)?
// listener.ts
// client.ts