{ "id": "127074", "key": "TIMOB-16545", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-28T23:39:15.000+0000", "created": "2014-03-04T00:00:42.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [ { "id": "35530", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "127073", "key": "TIMOB-16544", "fields": { "summary": "Android: AlertDialog message property, accepted value varies by platform", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:41.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "ENVIRONMENT:\r\nStudio and SDK 3.2.1.GA\r\nAndroid API Level 10, Genymotion Emulator\r\nAndroid API Level 16, Genymotion Emulator\r\niOS 7.0.3 / Xcode 5.0.2\r\nChrome Version 32.0.1700.107\r\n\r\nREPRODUCTION:\r\nRun the test code below on the Android emulator, iOS simulator and in a browser, then click on each button.\r\n\r\nEXPECTED RESULTS:\r\nEach message should be similar.\r\n\r\nACTUAL RESULTS:\r\nAndroid cannot stringify the array values, Mobile Web cannot stringify the object value, but iOS can stringify both.\r\n\r\nMORE INFO:\r\nNote that the current documentation says that only a string value is accepted: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.AlertDialog-property-message\r\n\r\nPerhaps the type should be enforced rather than allow other types to be passed in.\r\n\r\nTEST CODE:\r\n{code}\r\nvar json = { alert: \"test json value\" };\r\nvar arr = [\"test\", \"array\", \"value\"];\r\n\r\nvar win = Titanium.UI.createWindow({ \r\n\tlayout: 'vertical', navBarHidden: true\r\n});\r\n\r\nvar button1 = Ti.UI.createButton({title:'JSON Alert Dialog'});\r\nvar button2 = Ti.UI.createButton({title:'JSON Alert'});\r\nvar button3 = Ti.UI.createButton({title:'Array Alert Dialog'});\r\nvar button4 = Ti.UI.createButton({title:'Array Alert'});\r\n\r\nbutton1.addEventListener('click', function(){\r\n\tTi.UI.createAlertDialog({message: json}).show();\r\n});\r\nbutton2.addEventListener('click', function(){\r\n\talert({message: json});\r\n});\r\nbutton3.addEventListener('click', function(){\r\n\tTi.UI.createAlertDialog({message: arr}).show();\r\n});\r\nbutton4.addEventListener('click', function(){\r\n\talert(arr);\r\n});\r\n\r\nwin.add(button1);\r\nwin.add(button2);\r\nwin.add(button3);\r\nwin.add(button4);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: AlertDialog message property, accepted value varies by platform", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "423095", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-28T23:39:15.000+0000", "updated": "2017-06-28T23:39:15.000+0000" }, { "id": "436475", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:41.000+0000", "updated": "2018-04-04T23:20:41.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }