[ 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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org