tauri-apps / plugins-workspace

All of the official Tauri plugins in one place!
https://tauri.app
Apache License 2.0
981 stars 276 forks source link

[feat] Detect more specific OS device type (iOS vs iPadOS, Android vs Android Tablet) #2082

Open httpjamesm opened 4 days ago

httpjamesm commented 4 days ago

I want a method of the os plugin to tell when my app is running on an iPad or an Android tablet. Right now, I can only tell if it's running on ios or android. My app might want to have different functionality on an iPad vs an iPhone. For example, submitting forms with the Enter key on iPad devices, but just adding a newline on iPhones. I could use display width for this, but then when the iPad uses my app as a side app, this would fail as it would appear as if I was running on an iPhone.

image