cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jcesarmobile (JIRA)" <>
Subject [jira] [Commented] (CB-13649) Device plugin `model` doesn't work in iOS simulator
Date Thu, 14 Dec 2017 23:03:00 GMT


jcesarmobile commented on CB-13649:

In fact you can get the model with Objective-C too

NSString * model = [NSString stringWithFormat:@"%s" , getenv("SIMULATOR_MODEL_IDENTIFIER")];

Might be a good feature to include

Anyway, for the notch and iOS 11 safe areas it's better to use css to handle that instead
of detecting it. Read this article for more information

> Device plugin `model` doesn't work in iOS simulator
> ---------------------------------------------------
>                 Key: CB-13649
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>            Reporter: Chet Corcos
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> When using the cordova device plugin in the simulator, its impossible to detect which
type of iOS device is being used because the model references the computer thats running the

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message