Aware in iframe?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Aware in iframe?

Post by hpl123 »

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
Henrik (V8 Developer Ed. - Windows)
joben
Posts: 221
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Re: Aware in iframe?

Post by joben »

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.
Regards, Joakim

Image
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Aware in iframe?

Post by hpl123 »

joben 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.
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
Henrik (V8 Developer Ed. - Windows)
cishpix
Posts: 183
Joined: Fri Nov 06, 2015 5:07 am
Location: Indonesia

Re: Aware in iframe?

Post by cishpix »

hpl123 wrote: Fri Nov 27, 2020 9:48 am DOES it work? Things to think about? Does it work in all browsers including Safari (IOS/MacOS)?
the answer is NO for Safari like below
Safari-screen.png
Safari-screen.png (52.23 KiB) Viewed 7370 times
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
That's right, the above link just for Chrome. There is no issue when you test it in Microsoft Edge and Mozilla Firefox.
Maybe Support can give us a good trick again.
Regards,

Suwandy
-----------------
Kisaran - Indonesia
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Aware in iframe?

Post by hpl123 »

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.
Henrik (V8 Developer Ed. - Windows)
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Aware in iframe?

Post by hpl123 »

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?
Henrik (V8 Developer Ed. - Windows)
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Aware in iframe?

Post by PointsWell »

hpl123 wrote: Sun Nov 29, 2020 1:26 pm As I thought with Safari and is a bummer. Yes support, a fix for this would be nice :).
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.
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Aware in iframe?

Post by hpl123 »

PointsWell wrote: Sun Nov 29, 2020 11:50 pm
hpl123 wrote: Sun Nov 29, 2020 1:26 pm As I thought with Safari and is a bummer. Yes support, a fix for this would be nice :).
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.
Yes, Safari is a crap browser but still widely used:
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)
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: Aware in iframe?

Post by PointsWell »

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
joben
Posts: 221
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Re: Aware in iframe?

Post by joben »

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
Ah, that makes sense.
It works in Internet Explorer and Firefox. Not in Chrome and Edge.
Regards, Joakim

Image
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Aware in iframe?

Post by hpl123 »

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
Ok, yeah as this browser is widely used, having these fixed would be nice. Maybe the latest Kendo library would fix them.
Henrik (V8 Developer Ed. - Windows)
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Aware in iframe?

Post by hpl123 »

joben wrote: Mon Nov 30, 2020 7:36 am
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
Ah, that makes sense.
It works in Internet Explorer and Firefox. Not in Chrome and Edge.
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.
Henrik (V8 Developer Ed. - Windows)
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Aware in iframe?

Post by hpl123 »

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.).
Henrik (V8 Developer Ed. - Windows)
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Aware in iframe?

Post by Jaymer »

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.
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
hpl123
Posts: 2579
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Aware in iframe?

Post by hpl123 »

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)
Post Reply