
Announcements
Hi!
I’m creating an app, and I need to determine the type of device the user is using because I want to allow the app’s use only on mobile devices or tablets.
Currently, I’m using screen.size, which provides four possible results (1, 2, 3, or 4) based on the screen size. However, there’s a challenge: both normal PCs and tablets can have a result of 4. Therefore, I’m unsure whether the user is using a tablet or a PC based on this result.
Does anyone have an alternative solution?
Thanks