{ "id": "142408", "key": "TIMOB-19233", "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": null, "resolutiondate": null, "created": "2015-01-07T10:41:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.5.0" ], "versions": [ { "id": "16586", "description": "Release 3.4.2", "name": "Release 3.4.2", "archived": false, "released": true, "releaseDate": "2017-03-11" } ], "issuelinks": [ { "id": "47655", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "147679", "key": "TIMOB-23533", "fields": { "summary": "If you have LiveView enabled, then you cannot registerForPushNotifications on iOS", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T19:54:53.000+0000", "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" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "This is not a regression as it can be reproduced with titanium sdk 3.4.1\r\n\r\nWhen an android pushnotification app is run with live view, errors indicating that cloudpush module information cannot be found are thrown on the console when the app tries to re-launch with the changes made.However, when the app is run again on the device, it installs and launches successfully with the new changes made.\r\n\r\nSteps to reproduce:\r\n1. Run the attached app.js (include cloudpush module in tiapp.xml)with Liveview enabled on to a device\r\n2. Make changes in app.js eg: remove one of the commented lines on line 49 or 54 and save\r\n3. Run the app again by clicking 'Run As' and select the device again\r\nActual results:\r\n1. App is launched on device with a button \"Register for push notification\" o`n the center.\r\n2. the following error is produced in the console and device displays the splashscreen\r\n{code}\r\n[ERROR] : Error: APSCloudPush has not been enabled. Call APSCloud.enable(context, key) to enable.\r\n[ERROR] : File: app.js\r\n[ERROR] : Line: undefined\r\n[ERROR] : SourceId: undefined\r\n[ERROR] : Backtrace:\r\n[ERROR] : undefined\r\n[ERROR] : TiHttpClient: (TiHttpClient-7) [5,125] HTTP Error (org.apache.http.client.HttpResponseException): Not Found\r\n[ERROR] : TiHttpClient: org.apache.http.client.HttpResponseException: Not Found\r\n[ERROR] : TiHttpClient: \tat ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:275)\r\n[ERROR] : TiHttpClient: \tat ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:219)\r\n[ERROR] : TiHttpClient: \tat org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:669)\r\n[ERROR] : TiHttpClient: \tat org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:649)\r\n[ERROR] : TiHttpClient: \tat ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1334)\r\n[ERROR] : TiHttpClient: \tat java.lang.Thread.run(Thread.java:841)\r\n{code}\r\n3. The app launches successfully.\r\n\r\nExpected Results:\r\n2. The app should be re-launched with the new changes.", "attachment": [ { "id": "53444", "filename": "app.js", "author": { "name": "vchidambaram", "key": "vchidambaram", "displayName": "Visalakshi Chidambaram", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2015-01-07T10:41:26.000+0000", "size": 2128, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Android: liveview throws error related to cloudPush when changes are made to an android pushnotification app ", "creator": { "name": "vchidambaram", "key": "vchidambaram", "displayName": "Visalakshi Chidambaram", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "vchidambaram", "key": "vchidambaram", "displayName": "Visalakshi Chidambaram", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Titanium SDK: 3.5.0.v20150106224118\r\nAppc-Studio: 3.4.1.201410281743\r\nTitanium CLI: 3.4.1\r\nAlloy : 1.5.1 GA \r\nXcode : 6.1 \r\nOS: OSX 10.10.1 \r\nDevice : Samsung Galaxy S5 (4.4.2)", "comment": { "comments": [ { "id": "354292", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is similar to something you are already working.", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-04T00:42:10.000+0000", "updated": "2015-06-04T00:42:10.000+0000" }, { "id": "355732", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "iOS shows the same error\r\n\r\n{code}\r\n[INFO] : [LiveView] Error Evaluating app @ Line: 39\r\n[ERROR] : SyntaxError: Unexpected identifier 'http'. Expected ';' after var declaration.\r\n[ERROR] : File: app\r\n[ERROR] : Line: 39\r\n[ERROR] : SourceId: \r\n[ERROR] : Backtrace:\r\n[ERROR] : undefined\r\n{code}", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-06-23T08:48:31.000+0000", "updated": "2015-06-23T08:48:31.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }