ahand / mobileesp

MobileESP
Apache License 2.0
172 stars 77 forks source link

Gonative fail #11

Closed softshape closed 8 years ago

softshape commented 8 years ago

Gonative.io makes an Android/iPhone wrapper for website to make it look like a native app. But when the website page is called from the wrapper, it's not detected like mobile.

It's user agent string is -

Mozilla/5.0 (Linux; Android 4.4.4; M040 Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 gonative

softshape commented 8 years ago

To be exact, we detect mobile as detectTierIphone().

softshape commented 8 years ago

I've found the reason; Gonative doesn't use http-accept header. Our code was so strict it didn't even call mdetect function if the header is not present. MobileESP code works fine :)