cordova-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CB-13649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16291763#comment-16291763
] 

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
http://ayogo.com/blog/ios11-viewport/

> Device plugin `model` doesn't work in iOS simulator
> ---------------------------------------------------
>
>                 Key: CB-13649
>                 URL: https://issues.apache.org/jira/browse/CB-13649
>             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
simulator



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message