This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Harsha Vardhan R
Posted Jan 14 - Read on Facebook

Hey guys, wonder if someone else is facing a problem with Utils.isPhone(). My tablet is being recognised as a phone for some reason. Any solutions?
Thanks!

5 Comments

Koen Bok

This detection is pretty fuzzy. But I can improve it if you tell me 1) your table model 2) what the output of navigator.userAgent is.

Harsha Vardhan R

Hi Koen Bok thanks. 1.My tablet is an iPad 4, would it be possible to improve detection to include any tablet? 2. There is no output for navigator.userAgent on the tablet for some reason. In Framer studio it is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.1.25 (KHTML, like Gecko) FramerStudio/1.9.43. Don't know if it helps?

Cemre Güngör

whats the actual brand and model name of the tablet

Koen Bok

Hmmm the detection code seems correct: https://github.com/koenbok/Framer/blob/master/framer/Utils.coffee#L260

I think it craps out because navigator.userAgent does not have output on your device. Could it be that you override the navigator variable somewhere?

Harsha Vardhan R

Will look into it Koen Bok not sure why thats happening.

Read the entire post on Facebook