ionic-team / ionic-team/capacitor-plugins

Add a function into @capacitor/device which provides the channel (Tablet or Mobile)

Open
#2,376 0 comments 0 reactions 0 assignees View on GitHub
platform: android platform: ios
Dominant language
Java
Stars
678
Forks
685
Avg merge
4d 22h
Merged PRs (30d)
3

Description

## Feature Request

### Plugin
@capacitor/device - https://capacitorjs.com/docs/apis/device#deviceinfo

### Description
Provide a function which can directly say whether the current device is a Tablet (Android and iOS iPads)
Currently we rely on the Model. But different Mobile Making Companies donot include Tablet in the model name.

### Platform(s)
Android and iOS

### Preferred Solution
1. Solution can be based on the screen size.
2. Also if there is any parameter which can be read from Native Android and iOS which clearly differentiate between Tablet devices and Mobile devices.

### Alternatives

NA

### Additional Context
NA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.