{ "id": "154776", "key": "TIMOB-20366", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-02-08T12:38:24.000+0000", "created": "2016-02-05T18:02:39.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "docs", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-22T21:46:12.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "No matter which keyboard I define only the default keyboard shows on Android and iOS devices. \r\nSoft keyboard never shows on iOS simulator and Genymotion Emulator.\r\nI enclose the console output.\r\nThe problem may be caused by this error that shows in the console output: [Error: Module version mismatch. Expected 46, got 14.]\r\nI have tried everything I can possibly think of but as it seems without positive result. I attach a file holding the console output from a iOS simulator run as well as the very simple codebase.", "attachment": [ { "id": "58155", "filename": "keyboard_test.rtf", "author": { "name": "john@marott.dk", "key": "john@marott.dk", "displayName": "John Marott", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2016-02-05T17:58:40.000+0000", "size": 22834, "mimeType": "text/rtf" }, { "id": "58154", "filename": "keyboard_test.zip", "author": { "name": "john@marott.dk", "key": "john@marott.dk", "displayName": "John Marott", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2016-02-05T18:00:51.000+0000", "size": 4797, "mimeType": "application/zip" } ], "flagged": false, "summary": "No matter which keyboard I define the default keyboard shows", "creator": { "name": "john@marott.dk", "key": "john@marott.dk", "displayName": "John Marott", "active": true, "timeZone": "Europe/Copenhagen" }, "subtasks": [], "reporter": { "name": "john@marott.dk", "key": "john@marott.dk", "displayName": "John Marott", "active": true, "timeZone": "Europe/Copenhagen" }, "environment": " Modelnavn:\tMac mini\r\n Model-id:\tMacmini5,2\r\n Processornavn:\tIntel Core i5\r\n Processorhastighed:\t2,5 GHz\r\n Antal processorer:\t1\r\n Antal kerner i alt:\t2\r\n L2-buffer (pr. Core):\t256 KB\r\n L3-buffer:\t3 MB\r\n Hukommelse:\t16 GB\r\nOSX El Capitan 10.11.3\r\nLatest Xcode\r\n\r\n", "comment": { "comments": [ { "id": "376200", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Does {{Ti.UI.KEYBOARD_NUMBER_PAD}} work? If so, the PR of [~apetkov] needs to be revisited. Also make sure you use Titanium Mobile 5.2.0 or later for {{Ti.UI.KEYBOARD_TYPE_NUMBER_PAD}}, all versions before use {{Ti.UI.KEYBOARD_NUMBER_PAD}}.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-07T20:00:44.000+0000", "updated": "2016-02-07T20:05:30.000+0000" }, { "id": "376201", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Update: Both support team and reporter tested using Titanium Mobile 5.x which does not support {{Ti.UI.KEYBOARD_TYPE_NUMBER_PAD}}, yet. Anyway, we need to update [the docs|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI-property-KEYBOARD_TYPE_NUMBER_PAD], which currently say, that the constant is already available in Titanium Mobile 0.8. [~apetkov] please fix. /cc [~cng], the docs update would make sense for 5_2_X", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-07T20:08:31.000+0000", "updated": "2016-02-07T20:09:41.000+0000" }, { "id": "376216", "author": { "name": "john@marott.dk", "key": "john@marott.dk", "displayName": "John Marott", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "Whether I use \"Ti.UI.KEYBOARD_NUMBER_PAD\" or \"Ti.UI.KEYBOARD_TYPE_NUMBER_PAD\" I get the same result. Only the Default keyboard is showing on devices and no soft keyboard is shown on the iOS simulator and the Genymotion emulator (Titanium SDK: 5.1.2.GA).\r\n\r\nJohn Marott\r\n", "updateAuthor": { "name": "john@marott.dk", "key": "john@marott.dk", "displayName": "John Marott", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2016-02-08T11:04:11.000+0000", "updated": "2016-02-08T11:04:11.000+0000" }, { "id": "376221", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I just took the time and revalidated it myself. Test code:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : \"#fff\"\r\n});\r\n\r\nvar field = Ti.UI.createTextField({\r\n\tkeyboardType: Ti.UI.KEYBOARD_NUMBER_PAD, // works in all versions, deprecated in 5.2.x\r\n\twidth: 300,\r\n\theight: 40,\r\n\tbackgroundColor: \"#ccc\"\r\n});\r\n\r\nwin.add(field);\r\nwin.open();\r\n{code}\r\n\r\nResult (correct): http://abload.de/img/simulatorscreenshot085pum3.png\r\n\r\nClosing as invalid, please check your code!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-08T12:37:43.000+0000", "updated": "2016-02-08T12:38:06.000+0000" }, { "id": "376236", "author": { "name": "john@marott.dk", "key": "john@marott.dk", "displayName": "John Marott", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "I tested your Classic example and it worked on iOS devices as you state. But as you can see from the files I included in the Bug report I tested in Alloy. Just like you I just defined a text field and the keyboard to use with no additional code. This still does not work.\r\n\r\n/John Marott\r\n", "updateAuthor": { "name": "john@marott.dk", "key": "john@marott.dk", "displayName": "John Marott", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2016-02-08T15:44:52.000+0000", "updated": "2016-02-08T15:44:52.000+0000" }, { "id": "376239", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~fmiao] Do we hardcode any keyboard related constants in Alloy? Looks suspicious!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-08T15:59:27.000+0000", "updated": "2016-02-08T15:59:27.000+0000" }, { "id": "376249", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "[~john@marott.dk], the test app you attached need to be modified: \r\n{code}\r\n\"#TextField_1\": {\r\n\t\"width\": \"67.60%\",\r\n\t\"height\": \"4.90%\",\r\n\t\"borderRadius\": \"10\",\r\n\t\"borderColor\": \"#E5E5E5\",\r\n\t\"borderWidth\": \"1\",\r\n\t\"left\": \"19.60%\",\r\n\t\"top\": \"27.31%\",\r\n\t\"hintText\": \"Type something\",\r\n\t\"keyboardType\": Titanium.UI.KEYBOARD_DECIMAL_PAD // <----- like in classic, this should not be enclosed with quotes.\r\n}\r\n{code}", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-02-08T18:16:49.000+0000", "updated": "2016-02-08T18:16:49.000+0000" }, { "id": "376253", "author": { "name": "john@marott.dk", "key": "john@marott.dk", "displayName": "John Marott", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "You are absolutely right. Without quotes it works like it should. I really thought that I had tested without quotes. Now I realize that the problem can be referred back to the Designer. The Designer seems to put quotes around everything so even if I edit the TSS file without quotes around keyboard constants, as soon as I make changes using the Designer the Designer will put quotes right back. This made me believe that the keyboard constants should be enclosed in quotes.\r\n\r\nSorry for the inconvenience and thank you so much for your efforts.\r\n\r\n/John Marott\r\n", "updateAuthor": { "name": "john@marott.dk", "key": "john@marott.dk", "displayName": "John Marott", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2016-02-08T18:55:28.000+0000", "updated": "2016-02-08T18:55:28.000+0000" }, { "id": "415036", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:46:12.000+0000", "updated": "2017-03-22T21:46:12.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }