{ "id": "146842", "key": "AC-751", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-09-30T00:58:03.000+0000", "created": "2015-04-12T22:37:07.000+0000", "labels": [ "exports", "mobileweb", "ti.cloud" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:00.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hello,\r\n\r\nWhen I compile my code as mobile web, the ti.cloud parts doesn't work. \r\nWhen launching the app in the browser, there are errors in the javascript console : \r\nexports is not defined\r\nCloud.sendRequest is not a function\r\n\r\nThe app is working fine on android.\r\nI tried different sdk or ti.cloud version but there is always the same error. \r\n\r\nThank you,\r\nNicolas.\r\n", "attachment": [ { "id": "54888", "filename": "build.rar", "author": { "name": "wickko", "key": "wickko", "displayName": "Nicolas Weinachter", "active": true, "timeZone": "Europe/Paris" }, "created": "2015-04-12T22:37:07.000+0000", "size": 1451286, "mimeType": "application/x-rar-compressed" } ], "flagged": false, "summary": "Can't use ti.cloud in mobileweb app", "creator": { "name": "wickko", "key": "wickko", "displayName": "Nicolas Weinachter", "active": true, "timeZone": "Europe/Paris" }, "subtasks": [], "reporter": { "name": "wickko", "key": "wickko", "displayName": "Nicolas Weinachter", "active": true, "timeZone": "Europe/Paris" }, "environment": "windows 8 \r\nsdk 3.5.1RC\r\nti.cloud 3.2.8", "comment": { "comments": [ { "id": "360810", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": " Hello,\r\n\r\nWe tested this issue in our environment. Its working as expected. I will mark this as resolved we can't reproduce it.\r\n\r\n Test Environment:\r\n\r\n CLI Version = 4.0.1\r\n Titanium SDK Version = 4.1.0.GA\r\n Google Chrome 44.0.2403.157 (64-bit)\r\n\r\n*Test Code:*\r\n\r\n*index.js*\r\n\r\n{code}\r\n\r\nfunction doClick(e) {\r\n(function() {\r\n\t\tvar ACS = require('ti.cloud'),\r\n\t\t env = Ti.App.deployType.toLowerCase() === 'production' ? 'production' : 'development',\r\n\t\t username = Ti.App.Properties.getString('acs-username-' + env),\r\n\t\t password = Ti.App.Properties.getString('acs-password-' + env);\r\n\t\tACS.sendRequest({\r\n\t\t url : \"users/login.json\",\r\n\t\t method : \"POST\",\r\n\t\t data : {\r\n\t\t login : 'rakhimonimitro@gmail.com',\r\n\t\t password : 'test1234'\r\n\t\t }\r\n\t\t}, function(e) {// The callback called when the request completes\r\n\t\t if (e.success) {\r\n\t\t var user = e.users[0];\r\n\t\t alert('Success:\\n' + \r\n\t\t 'id: ' + user.id + '\\n' + \r\n\t\t 'first name: ' + user.first_name + '\\n' + \r\n\t\t 'last name: ' + user.last_name);\r\n\t\t } else {\r\n\t\t alert('Error:\\n' + ((e.error && e.message) || JSON.stringify(e)));\r\n\t\t }\r\n\t\t}); \r\n\r\n\t})();\r\n}\r\n\r\n$.index.open();\r\n{code}\r\n\r\nThanks", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-23T09:20:39.000+0000", "updated": "2015-09-30T00:57:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }