Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E812D64D for ; Tue, 13 Nov 2012 19:32:12 +0000 (UTC) Received: (qmail 92959 invoked by uid 500); 13 Nov 2012 19:32:12 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 92932 invoked by uid 500); 13 Nov 2012 19:32:12 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 92924 invoked by uid 500); 13 Nov 2012 19:32:12 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 92920 invoked by uid 99); 13 Nov 2012 19:32:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 19:32:12 +0000 Date: Tue, 13 Nov 2012 19:32:12 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1347198430.109564.1352835132206.JavaMail.jiratomcat@arcas> In-Reply-To: <150675549.102197.1352748792831.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CB-1837) Device core plugin - device.name should return the actual device string (eg iPod Touch, iPhone 3GS) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-1837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496470#comment-13496470 ] Shazron Abdullah commented on CB-1837: -------------------------------------- [UIDevice model] only returns the basic info, like "iPhone" or "iPod Touch". Not sure if want to return the actual model like iPad2,5: {code} size_t size; sysctlbyname("hw.machine", NULL, &size, NULL, 0); char *machine = malloc(size); sysctlbyname("hw.machine", machine, &size, NULL, 0); NSString* _platform = [NSString stringWithCString:machine encoding:NSASCIIStringEncoding]; free(machine); {code} > Device core plugin - device.name should return the actual device string (eg iPod Touch, iPhone 3GS) > --------------------------------------------------------------------------------------------------- > > Key: CB-1837 > URL: https://issues.apache.org/jira/browse/CB-1837 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Reporter: Shazron Abdullah > Assignee: Shazron Abdullah > Fix For: 2.3.0 > > > Device.name returns the custom device name as the user defines it > in iTunes. It should return the model name, I.e. What device.platform > returns now (related: CB-1836) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira