{ "id": "119180", "key": "TIMOB-14984", "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": "15703", "description": "2013 Sprint 22", "name": "2013 Sprint 22", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "15704", "description": "2013 Sprint 22 API", "name": "2013 Sprint 22 API", "archived": true, "released": true, "releaseDate": "2013-11-01" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-10-10T19:55:37.000+0000", "created": "2013-08-28T13:22:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "32452", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "117073", "key": "TIMOB-14520", "fields": { "summary": "Android: Anvil: android/android/android -> jsActivityUrl failed", "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" } }, "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": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T22:08: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "This is a regression. The code in question worked in 3.1.1.\r\n\r\nh3. Scenario\r\n\r\nI have two apps. One launches the other using {{openURL()}} and optionally passing launch arguments.\r\n\r\nh3. Expected results\r\n\r\nTarget app receives the intent, accesses URL parameters sent by using {{activity.getIntent().getData()}} and uses them to take appropriate action.\r\n\r\nh3. Actual results\r\n\r\nUsing Titanium 3.1.2, the source app can open the target app. But, the create event doesn't fire. So I can't grab the payload (the URL parameters) and execute the desired function.\r\n\r\n\"Source\" app: https://github.com/appcelerator-training/tce_training/tree/master/labcode/Finished_code/08_source\r\n\r\n\"Target\" app: https://github.com/appcelerator-training/tce_training/tree/master/labcode/Finished_code/URLSchemes\r\n\r\nThings I've tried that didn't solve the problem:\r\n\r\n* Make the app's window heavyweight\r\n* Put the code within {{window.addEventListener('open', function() {// code here})}}\r\n* Use the window open listener, pass in an event object, try grabbing a handle to the activity from e.source.activity (window was heavyweight)\r\n* Tried listening on the activity's newintent, resume, and start events instead of create\r\n* Added {{android:launchMode=\"singleTask\"}} to the activity's definition in tiapp.xml\r\n\r\nThe code as written worked fine in 3.1.1 (and a couple SDKs prior to that too). Downgrading from 3.1.2 to 3.1.1 is all it takes to \"fix\" the code.", "attachment": [ { "id": "41975", "filename": "Archive.zip", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-08-29T13:35:10.000+0000", "size": 11576643, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Activity doesn't react to create, start, resume, or newintent events preventing interapp sharing of data", "creator": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium 3.1.2GA\r\nAndroid emulator running 4.0.3\r\nGalaxy Nexus running 4.2.2", "comment": { "comments": [ { "id": "268557", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Possibly related to TIMOB-14520 per conversation with Ping", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-08-28T13:23:10.000+0000", "updated": "2013-08-28T13:23:10.000+0000" }, { "id": "268764", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~skypanther], it seems I have no permission to clone the two apps you mentioned in the ticket.\r\nI submitted a PR for TIMOB-14520 https://github.com/appcelerator/titanium_mobile/pull/4622. Can you try it to see if that also solve your issue?", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-28T23:03:50.000+0000", "updated": "2013-08-28T23:04:05.000+0000" }, { "id": "268827", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I hate to admit I'm a dummy and don't know how to pull an unmerged branch then build our SDK. But, that's the way it is. I've attached a zip to this ticket containing the two projects. These worked in class using 3.1.1GA. They don't contain any new code from the various attempts I've made to resolve this issue in 3.1.2.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2013-08-29T13:37:22.000+0000", "updated": "2013-08-29T13:37:22.000+0000" }, { "id": "415085", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate and links to the related ticket have been provided above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:08:41.000+0000", "updated": "2017-03-22T22:08:41.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }