Integrate Google Meet video calls in iOS webview - ios

In my iOS app I am trying to open Google Meet meetings in the web view. But When I tried to open meeting url it redirect me to install app page.
So I tried to open force desktop view of it and I changed customUserAgent of WKWebView as follows
webview.customUserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36"
By using this user agent I am able to open desktop view but it is giving error of unsupported browser.
any help would be appreciated

Related

jitsi not supported in IOS xamarin webview

I am trying to open jitsi website on a webview,
if I open it in the Safari builtin browser, it works fine.
if I open it in a Webview inside Xamarin application, it said "It looks like you're using a browser we don't fully support"
is not it supposed the Webview uses Safari by default?
then, why Safari works, while the Webview is not supported?
Is there any work around to open the Jitsi inside the application Webview?
Opening an external browser is not an option,
------------ UPDATE (1) -----------------
According to Jason advice, I set the UserAgent:
1- I used my xamarin webview and navigate to:
whatsmyua.info
My UserAgent was "Mozilla/5.0 (iPhone; CPU iPhone OS 15_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
2- I used iPhone Safari and navigate to:
whatsmyua.info
My UserAgent was "Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1"
3- So I set the xamarin webview UserAgent in code behind
wkWebView.CustomUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1";
4- I check again using "whatsmyua.info", and everythign is ok, UserAgent successfully changed.
5- I tried to open "jitsi website", but nothing changed,
still gives me "It looks like you're using a browser we don't fully support"
Any Ideas, please?
===================== Update (2) ========================
I used UserAgent "Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0",
Now it is working,
But I do not why it did not work when I used the same UserAgent like Safari!
Anyway, I am happy
Thanks (Jason)
According to Jason advice, I set the UserAgent:
1- I used my xamarin webview and navigate to:
whatsmyua.info
My UserAgent was "Mozilla/5.0 (iPhone; CPU iPhone OS 15_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
2- I used iPhone Safari and navigate to:
whatsmyua.info
My UserAgent was "Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1"
3- So I set the xamarin webview UserAgent in code behind wkWebView.CustomUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1";
4- I check again using "whatsmyua.info", and everythign is ok, UserAgent successfully changed.
5- I tried to open "jitsi website", but nothing changed, still gives me "It looks like you're using a browser we don't fully support"
===================== Final Working Solution ========================
I used this UserAgent:
wkWebView.CustomUserAgent = "Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0";
Now it is working!
Anyway, I am happy
Thanks (Jason)

Not able to login through Microsoft SSO in my app

We are using sso(single sign on) in our webapp to login. And we have iOS app which just renders the webview of our webapp.
We are facing issue when logging to iOS app with Microsoft SSO provider. User is able to login through mobile safari browser but not through the iOS app.
UserAgent used in iOS app is "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15 AppMobile";
Can someone know how to fix this?

Audio/Video not supported React Native ios webview

I'm working on a live video session app. I have used the BigBlueButton API to develop the web version, which is working properly on the web. I'm trying to use that web app URL in my react native app using react-native-webview. In iOS app, I'm able to join the session but while enabling video I'm getting error message as follows
**Audio/Video not supported**
At this time audio and video not supported on chrome for ios. We recommend using Safari iOS.
When I'm setting userAgent as "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/604.3.5 (KHTML, like Gecko) Chrome/83.0.4103.97 Version/12.0.1 Mobile Safari/604.3.5".
And when I'm setting userAgent as "Mozilla/5.0 (iPhone; CPU iPhone OS 13_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/83.0.4103.88 Mobile/15E148 Safari/604.1" I'm getting following error.
On iOS please use Safari for full support.
When I'm removing the userAgent it showing the error like
It looks like you're using a browser that is not supported. Please use either Chrome or Firefox for full support.
Thanks in advance.

HTTP user-agent of iOS SocialUIService?

When using the native iOS share dialog UIActivityViewController inside you own App and starting to share a link via the Facebook icon a SocialUIService is in the background crawling the link/website for additional information.
What HTTP user-agent has this SocialUIService service?
From what I can tell, when the SocialUIService fetches the link in the background, the user agent is:
Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12B440
Where if you were to click on the link in Safari, it would look like this:
Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B440 Safari/600.1.4
Notice the two missing pieces are Version/8.0 and Safari/600.1.4

Mobile Twitter site refuses Webview as client

I'm trying to view a users tweets from my app but twitter responses with a webpage saying:
Sorry that page is not supported on mobile at this time
However if i load the same URL with mobile safari i get a nice webpage with all the tweets.
I'm using this URL: http://mobile.twitter.com/SOME_USERNAME/tweets
You can reproduce the error message by visiting the url in safari. If you use safari as developer and you set the user agent to iPhone you'll get the right page.
It seems the webview is sending different headers as User Agent:
Mozilla/5.0 (iPhone Simulator; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9B176
vs
Mozilla/5.0 (iPhone Simulator; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B176 Safari/7534.48.3
Is there anything i could do about this problem?
Apperently it does work when i remove the /tweets part of the URL.
This is not really the answer to my question but it is the best option as long as nobody comes up with a better answer i'll accept this answer.

Resources