Not sure if my set up is incorrect as I'm starting to use the URL utility widget more....
I have a main app A that calls an app B and launches it in a new section that has a URL utility widget that contains the app.
I was under the impression that on every call to app B, my app would launch as if its the first time its being called (call startup pgm).
Especially if App B has a (back) button that closes app B along with firing a public event 'GoBack' that app A listens for. That 'GoBack' event in App A then shows the previous (main) section.
The functionality works fine one the first launch.. but on the next attempts to launch app B, my 'startup' program is no longer triggered in app B because it seems to not close. All the data from the first launch stays.
Sure I can set up public events to be fired back and forth. I've got some event listeners set up but it would seem a bit tedious as a long term solution. App B will be called from other calling apps and I simply want to pass 1 or 2 parameters. App B takes those parameters at startup and performs accordingly.
What should closing app B do?
I have a main app A that calls an app B and launches it in a new section that has a URL utility widget that contains the app.
I was under the impression that on every call to app B, my app would launch as if its the first time its being called (call startup pgm).
Especially if App B has a (back) button that closes app B along with firing a public event 'GoBack' that app A listens for. That 'GoBack' event in App A then shows the previous (main) section.
The functionality works fine one the first launch.. but on the next attempts to launch app B, my 'startup' program is no longer triggered in app B because it seems to not close. All the data from the first launch stays.
Sure I can set up public events to be fired back and forth. I've got some event listeners set up but it would seem a bit tedious as a long term solution. App B will be called from other calling apps and I simply want to pass 1 or 2 parameters. App B takes those parameters at startup and performs accordingly.
What should closing app B do?

Comment