Hi all,
Is anyone using Aware in an iframe and can share some thoughts, tips etc. on how this works? DOES it work? Things to think about? Does it work in all browsers including Safari (IOS/MacOS)? Is Aware "robust" enough to be used on a frontend/public site (guest VP and iframe/aware on main site of a fairly busy site) or does it take too large a toll on Aware, servers etc.?
Appreciate any feedback here or PM. Thanks
Aware in iframe?
Aware in iframe?
Henrik (V8 Developer Ed. - Windows)
Re: Aware in iframe?
We tried this recently for one of our BSV's and we didn't get it to work.
Whenever we included URL parameters like logonGuest.aw?domain=yadayada we got a session timed out error.
We made a workaround instead to save ourselves some precious time.
We tried iframe, object and embed and no luck with either tag.
Whenever we included URL parameters like logonGuest.aw?domain=yadayada we got a session timed out error.
We made a workaround instead to save ourselves some precious time.
We tried iframe, object and embed and no luck with either tag.
Re: Aware in iframe?
Thanks, was this in all browsers? This is most likely due to the Chrome change if you only had the issue in Chrome: https://www.awareim.com/forum/viewtopic ... ame#p54776joben wrote: ↑Fri Nov 27, 2020 12:22 pm We tried this recently for one of our BSV's and we didn't get it to work.
Whenever we included URL parameters like logonGuest.aw?domain=yadayada we got a session timed out error.
We made a workaround instead to save ourselves some precious time.
We tried iframe, object and embed and no luck with either tag.
Henrik (V8 Developer Ed. - Windows)
Re: Aware in iframe?
the answer is NO for Safari like below
That's right, the above link just for Chrome. There is no issue when you test it in Microsoft Edge and Mozilla Firefox.hpl123 wrote: ↑Fri Nov 27, 2020 4:45 pm This is most likely due to the Chrome change if you only had the issue in Chrome: https://www.awareim.com/forum/viewtopic ... ame#p54776
Maybe Support can give us a good trick again.
Regards,
Suwandy
-----------------
Kisaran - Indonesia
Suwandy
-----------------
Kisaran - Indonesia
Re: Aware in iframe?
As I thought with Safari and is a bummer. Yes support, a fix for this would be nice
. The problem I believe is Tomcat trying to send cookies and Safari doesn´t allow third party cookies at all. If we could configure Tomcat to not use any cookies at all it might work but then the app might not.
![Smile :)](./images/smilies/icon_smile.gif)
Henrik (V8 Developer Ed. - Windows)
Re: Aware in iframe?
A couple of suggestions to get around the Safari cookie problem I read:
- Detecting when it´s Safari and instead of the iframe, display information about Safari being an unsupported browser and instruct how to allow third party cookies (is a setting).
- Detecting when it´s Safari and instead of the iframe, display a clickable link to open up the app in another window/tab.
- Add a CNAME DNS entry to point to the iframe URL hence making the iframe URL a "first party" URL.
- Embed/load the entire content of the webapp start page into a DIV and running it on the parent site instead of via an iframe. Is this or some variation or this or of embedding an Aware app possible? Anyone knows?
- Detecting when it´s Safari and instead of the iframe, display information about Safari being an unsupported browser and instruct how to allow third party cookies (is a setting).
- Detecting when it´s Safari and instead of the iframe, display a clickable link to open up the app in another window/tab.
- Add a CNAME DNS entry to point to the iframe URL hence making the iframe URL a "first party" URL.
- Embed/load the entire content of the webapp start page into a DIV and running it on the parent site instead of via an iframe. Is this or some variation or this or of embedding an Aware app possible? Anyone knows?
Henrik (V8 Developer Ed. - Windows)
-
- Posts: 1460
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Aware in iframe?
There's a lot of things that Safari is the poor cousin for which is annoying. CSS on safari has a bunch of overrides for things like field groups aka separators on Aware forms.
I don't have the CSS skills to fix, but there are plenty of other websites that can display these.
Re: Aware in iframe?
Yes, Safari is a crap browser but still widely used:PointsWell wrote: ↑Sun Nov 29, 2020 11:50 pmThere's a lot of things that Safari is the poor cousin for which is annoying. CSS on safari has a bunch of overrides for things like field groups aka separators on Aware forms.
I don't have the CSS skills to fix, but there are plenty of other websites that can display these.
https://en.wikipedia.org/wiki/Usage_sha ... b_browsers
I just hope other browsers like Chrome don't follow Safari with the cookie thing.
Henrik (V8 Developer Ed. - Windows)
-
- Posts: 1460
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: Aware in iframe?
I was referring more to the number of things that Aware overrides as too hard and yet have been done elsewhere or have since been fixed but not updated within Aware
Re: Aware in iframe?
Ah, that makes sense.hpl123 wrote: ↑Fri Nov 27, 2020 4:45 pm Thanks, was this in all browsers? This is most likely due to the Chrome change if you only had the issue in Chrome: https://www.awareim.com/forum/viewtopic ... ame#p54776
It works in Internet Explorer and Firefox. Not in Chrome and Edge.
Re: Aware in iframe?
Ok, yeah as this browser is widely used, having these fixed would be nice. Maybe the latest Kendo library would fix them.PointsWell wrote: ↑Mon Nov 30, 2020 1:14 am I was referring more to the number of things that Aware overrides as too hard and yet have been done elsewhere or have since been fixed but not updated within Aware
Henrik (V8 Developer Ed. - Windows)
Re: Aware in iframe?
I can confirm, the fix by support fully solved this issue and the iframe works in all browsers (including Edge) except Safari (but Safari does work if you do a DNS change like suggested above). I would love to not have to do that though, it seems the only cookie Aware sends is the session cookie and disabling that and using some other mechanism for the session stuff might make all of this go away i.e all Aware apps would work fully via iframe in all browsers even Safari.joben wrote: ↑Mon Nov 30, 2020 7:36 amAh, that makes sense.hpl123 wrote: ↑Fri Nov 27, 2020 4:45 pm Thanks, was this in all browsers? This is most likely due to the Chrome change if you only had the issue in Chrome: https://www.awareim.com/forum/viewtopic ... ame#p54776
It works in Internet Explorer and Firefox. Not in Chrome and Edge.
Henrik (V8 Developer Ed. - Windows)
Re: Aware in iframe?
So, no one is using iframe for their apps? Here is my use case scenario if anyone feel inclined to share some experience:
Using Aware via a iframe on frontend sites for multiple tenants. The Aware app would be a multitenant solution where each company have a Aware app iframe widget they place on their frontpage (displayed on the frontpage of Company A, Company B, Company N etc. etc. and the companies website visitors would then use the Aware app). All visitors to the site would not use the app i.e it wouldn´t be autoloaded/opened up, it would more be the iframe being activated when needed via clicking on a button. Would this work? I mean, websites can get a lot of visitors so in theory this could mean a lot of concurrent Aware users and Aware has to be able to manage it (in a way that makes sense from a pricing model perspective for my company i.e I can´t charge tons of money for it and have a separate server for each company). Is anyone using Aware like this or in a iframe on a public frontend website? I am mainly interested in knowing if Aware would be a good fit for something like this (load, performance etc.).
Using Aware via a iframe on frontend sites for multiple tenants. The Aware app would be a multitenant solution where each company have a Aware app iframe widget they place on their frontpage (displayed on the frontpage of Company A, Company B, Company N etc. etc. and the companies website visitors would then use the Aware app). All visitors to the site would not use the app i.e it wouldn´t be autoloaded/opened up, it would more be the iframe being activated when needed via clicking on a button. Would this work? I mean, websites can get a lot of visitors so in theory this could mean a lot of concurrent Aware users and Aware has to be able to manage it (in a way that makes sense from a pricing model perspective for my company i.e I can´t charge tons of money for it and have a separate server for each company). Is anyone using Aware like this or in a iframe on a public frontend website? I am mainly interested in knowing if Aware would be a good fit for something like this (load, performance etc.).
Henrik (V8 Developer Ed. - Windows)
Re: Aware in iframe?
Having read the use case, this is as close as I got to that.
1. i needed multi-tenant, so i had to pass in something on the command line to attach the submitted form to... to tag the data to attach to the tenant. this was the main issue
2. since this AIM version, there have been tweaks/bug fixes so the same challenges may not currently exist.
1. i needed multi-tenant, so i had to pass in something on the command line to attach the submitted form to... to tag the data to attach to the tenant. this was the main issue
2. since this AIM version, there have been tweaks/bug fixes so the same challenges may not currently exist.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
Re: Aware in iframe?
Thanks Jaymer and sounds pretty similar to what I am doing. Are you using this live still? Any thoughts on performance, server load as this is on a "normal" site etc.? Bot problems?
Henrik (V8 Developer Ed. - Windows)