kshyju / BrowserDetector

Fast & light weight browser detection & device detection for asp.net core and azure functions
MIT License
30 stars 13 forks source link

Problems #5

Open CelsoMMiranda opened 4 years ago

CelsoMMiranda commented 4 years ago

Hello, I found something that could be a problem, I'll give you an example: You have a page that as soon as the person enters it has a validation to check if it is mobile or not, ok? so far so good! however if the link on this page is shared via whatsapp, when placing the link on the whatsapp chat page a request is made to this page, just placing the link on the whatsapp chat, so your page will result in an error, because unfortunately your library was triggered but cannot identify, so it generates an error. I really enjoyed your work, I'm just trying to improve.

kshyju commented 4 years ago

If you open a link from whats-app, it will be opened on the default browser of the platform(ex: Safari on iPhone?). Is that not rite ?

Can you try http://bit.ly/request-headers in that environment and share what User-Agent value you are seeing ?

alicoskun commented 4 years ago

Hi, I have a similar problem on IOS Instagram in-app browser. (It works fine on Android Instagram app.) I tried to open this url (http://bit.ly/request-headers) but I couldn't see anything, see the attachment.

Then I tried another detection website (https://developers.whatismybrowser.com) and it detected the user agent.

User Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 12_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 147.0.0.30.121 (iPhone9,3; iOS 12_4_1; tr_TR; tr-TR; scale=2.00; 750x1334; 224680684) Phone: IPhone 7 OS: iOS 12.4.1

WhatsApp Image 2020-06-22 at 21 14 56