{ "id": "110853", "key": "TIMOB-13002", "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": [ { "id": "15922", "description": "2014 Sprint 03", "name": "2014 Sprint 03", "archived": true, "released": true, "releaseDate": "2014-02-14" }, { "id": "15923", "description": "2014 Sprint 03 API", "name": "2014 Sprint 03 API", "archived": true, "released": true, "releaseDate": "2014-02-14" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-06T19:33:07.000+0000", "created": "2013-03-08T15:42:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_textfield", "qe-closed-3.2.3", "qe-testadded", "supportTeam", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-18T23:47:11.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" } ], "description": "h4. Description\r\n\r\nWhen we open a html page that contains textfields inside a webview, clicking on the textfields do not open the soft keyboard in some Android OS versions (tested on 2.3.5).\r\n\r\nh4. Code to Reproduce\r\n\r\napp.js\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar web = Ti.UI.createWebView({\r\n\theight: Ti.UI.FILL,\r\n\twidth: Ti.UI.FILL,\r\n\turl: 'textfield.html'\r\n});\r\n\r\nwin.add(web);\r\n\r\nwin.open();\r\n{code} \r\n\r\ntextfield.html\r\n{code}\r\n\r\n\t\r\n\t\tTest for textfields\r\n\t\r\n\t\r\n\t\t
\r\n First name:
\r\n Last name: \r\n
\r\n\t\r\n\r\n{code}\r\n\r\nh4. Workaround\r\n\r\nIt seems to work if we set the softKeyboardOnFocus property on the webview to either Titanium.UI.Android.SOFT_KEYBOARD_HIDE_ON_FOCUS, or Titanium.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS and then do web.focus().", "attachment": [], "flagged": false, "summary": "Android: HTML textfields inside webview do not open keyboard", "creator": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 2.3.x\r\nTitanium SDK 3.0.2 \r\n", "comment": { "comments": [ { "id": "242011", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem does not exist with android 4.0.4(titanium sdk 3.0.2 and 3.1.0) and works fine on iphone emulator\r\n\r\ntested on\r\n\r\nTitanium Studio, build: 3.0.2.201302191606\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\nAndroid Emulator: Android SDK version: 2.2\r\niOS iPhone Simulator: iOS SDK version: 6.0\r\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-13T17:25:57.000+0000", "updated": "2013-03-13T17:27:42.000+0000" }, { "id": "275026", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Work around did not work. The keyboard occasionally did not pop up when we tapped into the input field. Where occasionally means \"1 out of 3 attempts\".\r\n\r\nDeveloper could replicate on Android 2.3.5 device (including me was Droid Razr 2.3.5 w/ TiSDK 3.1.3.GA). Their kindle fire version is also affected by this bug.\r\n\r\nWhenever the keyboard pop up you can see similar logs, I.E.\r\n\r\nh6.First attempt (keyboard did pop up):\r\n{code}\r\n10-14 14:43:38.453: D/LatinKeyboard(708): updateF1Key-mIsAlphaKeyboard: true ,mHasVoiceButton: true\r\n10-14 14:43:38.453: D/LatinKeyboard(708): updateF1Key-mIsAlphaKeyboard: true ,mHasVoiceButton: true\r\n10-14 14:43:38.453: D/LatinKeyboard(708): updateF1Key-mIsAlphaKeyboard: true ,mHasVoiceButton: true\r\n10-14 14:43:38.460: D/LatinKeyboard(708): updateF1Key-mIsAlphaKeyboard: true ,mHasVoiceButton: true\r\n10-14 14:43:38.476: D/LatinKeyboard(708): updateF1Key-mIsAlphaKeyboard: true ,mHasVoiceButton: true\r\n10-14 14:43:38.484: D/LatinKeyboard(708): updateF1Key-mIsAlphaKeyboard: true ,mHasVoiceButton: true\r\n10-14 14:43:38.507: I/gralloc(514): Allocated 0x6f482e65 size 1665230189\r\n10-14 14:43:38.562: D/dalvikvm(708): GC_EXTERNAL_ALLOC freed 77K, 32% free 4973K/7303K, external 3647K/3775K, paused 40ms\r\n10-14 14:43:38.593: I/gralloc(514): Allocated 0x660072 size 6488161\r\n{code}\r\n\r\nh6.Second attempt (keyboard did pop up):\r\n{code}\r\n10-14 14:44:16.898: D/LatinKeyboard(708): updateF1Key-mIsAlphaKeyboard: true ,mHasVoiceButton: true\r\n10-14 14:44:16.937: D/LatinKeyboard(708): updateF1Key-mIsAlphaKeyboard: true ,mHasVoiceButton: true\r\n10-14 14:44:16.953: I/gralloc(514): Allocated 0x660072 size 6488161\r\n10-14 14:44:16.992: I/gralloc(514): Allocated 0x660072 size 6488161\r\n10-14 14:44:18.976: D/dalvikvm(2625): GC_CONCURRENT freed 970K, 44% free 4008K/7111K, external 4234K/4816K, paused 6ms+2ms\r\n10-14 14:44:21.960: D/dalvikvm(2005): GC_EXPLICIT freed 578K, 45% free 3316K/6023K, external 2357K/2773K, paused 70ms\r\n{code}\r\n\r\nh6.Third attempt (keyboard did not pop up):\r\nWhenever the keyboard fails and textFields can't gain focus there are not significative logs to narrow down the issue.\r\n{code}\r\n10-14 14:45:05.351: D/dalvikvm(888): GC_EXPLICIT freed 809K, 50% free 4476K/8839K, external 7304K/8263K, paused 72ms\r\n{code}\r\n\r\nh6.Snippet code\r\nh6.app.js\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n \r\nvar web = Ti.UI.createWebView({\r\n height: Ti.UI.FILL,\r\n width: Ti.UI.FILL,\r\n //url: 'textfield.html'\r\n url: 'test.html'\r\n});\r\n \r\nwin.add(web);\r\n \r\nwin.open();\r\n{code}\r\n\r\nh6.test.html\r\n{code}\r\n\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nh6.Steps to replicate\r\n1) Launch sample posted originally or use above.\r\n2) Tap a TiUITextField (it may or not open keyboard).\r\n3) Close app via Back button - please repeat steps multiple times.\r\n\r\nh6.Additional details\r\nAs proposed by the Android docs, tag changes does not seem to come into play when setting html attributes: \r\n\r\n{quote}\r\n\"You can define multiple viewport properties in the tag's content attribute.\"\r\n{quote}\r\n\r\n- http://developer.android.com/guide/webapps/targeting.html", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-14T20:00:26.000+0000", "updated": "2013-10-16T16:12:35.000+0000" }, { "id": "289444", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/5251\nFor FR, please run KS and Anvil to make sure no new regressions. The test case seems only fail on Droid Razr 2.3.5, so we need [~egomez] to help with testing.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-23T18:20:49.000+0000", "updated": "2014-01-23T18:20:49.000+0000" }, { "id": "290542", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified ensures popping up the keyboard:\n\nTitanium Command-Line Interface, CLI version 3.2.1-beta3\nAlloy 1.3.1-beta3\nTitanium SDK version 3.3.0.TIMOB-13002 \nMac OSX : 10.8.5\nDroid Razr 2.3.5\n", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-30T23:54:22.000+0000", "updated": "2014-01-30T23:54:22.000+0000" }, { "id": "298476", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_2_X Backport : https://github.com/appcelerator/titanium_mobile/pull/5508", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-24T20:29:12.000+0000", "updated": "2014-03-24T20:29:12.000+0000" }, { "id": "298548", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with test Environment:\r\nAppc Studio:3.2.3.201403190645\r\nSdk:3.2.3.v20140324164913\r\nalloy:1.3.1\r\ntitanium:3.2.1\r\ntitanium-code-processor:1.1.0\r\nOsx: Maverick(10.9.2)\r\nDevice:LG-P970(V4.0.4),Nexus7(v4.3)\r\n\r\nHTML textfield inside webView opens Keyboard successfully.\r\nHence closing this issue.\r\nNew Bugged logged TIMOB-16695(as not working properly with android (v4.4.2)\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-25T11:08:44.000+0000", "updated": "2014-03-25T11:08:44.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }