Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1AC19200D66 for ; Fri, 15 Dec 2017 00:03:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 19C08160C16; Thu, 14 Dec 2017 23:03:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6080D160C25 for ; Fri, 15 Dec 2017 00:03:05 +0100 (CET) Received: (qmail 36007 invoked by uid 500); 14 Dec 2017 23:03:04 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 35989 invoked by uid 99); 14 Dec 2017 23:03:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2017 23:03:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 233C41A13A0 for ; Thu, 14 Dec 2017 23:03:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id QUmPvB-5glDt for ; Thu, 14 Dec 2017 23:03:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3FE975F3E1 for ; Thu, 14 Dec 2017 23:03:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 74676E25AB for ; Thu, 14 Dec 2017 23:03:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B83D42130A for ; Thu, 14 Dec 2017 23:03:00 +0000 (UTC) Date: Thu, 14 Dec 2017 23:03:00 +0000 (UTC) From: "jcesarmobile (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13649) Device plugin `model` doesn't work in iOS simulator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 14 Dec 2017 23:03:06 -0000 [ 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