{ "id": "165324", "key": "TIMOB-24316", "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": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-04-21T22:35:45.000+0000", "created": "2017-01-17T01:13:57.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-04-26T15:11:07.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": "h5.Reproduce:\r\n\r\n1. Run the attached app, (Simple app to check the URL which resumed the app)\r\n2. Close the app.\r\n3. Start test with following steps\r\n4 Start app from the link (banking.meridiancu.ca/test_login) (from URL in email in this test)\r\n5. Navigate to next page\r\n6. Pause the app \r\n7. Resume app using different link (banking.meridiancu.ca/security_login)\r\n8.. Observe app resumes successfully. But when you click Check URL button It shows link with which the app was initially started. (banking.meridiancu.ca/test_login)\r\n\r\nh6.Expect\r\nThe URL should be the exact one on resume or start the app.", "attachment": [ { "id": "61260", "filename": "openLinkTester 2.zip", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2017-01-17T01:13:48.000+0000", "size": 9800051, "mimeType": "application/zip" }, { "id": "61884", "filename": "TIMOB-24316_fix.gif", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T16:00:35.000+0000", "size": 1465752, "mimeType": "image/gif" }, { "id": "61882", "filename": "TIMOB-24316_issue.gif", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T14:20:16.000+0000", "size": 2924960, "mimeType": "image/gif" } ], "flagged": false, "summary": "Android: Can't get the right URL if app resume by URL for the second time", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 6.0.1.GA\r\nAndroid 6\r\nmodel S5, S6, S7", "closedSprints": [ { "id": 839, "state": "closed", "name": "2017 Sprint 04 SDK", "startDate": "2017-02-12T23:36:00.961Z", "endDate": "2017-02-26T23:36:00.000Z", "completeDate": "2017-02-26T17:38:54.172Z", "originBoardId": 114 }, { "id": 871, "state": "closed", "name": "2017 Sprint 08 SDK", "startDate": "2017-04-10T15:40:31.217Z", "endDate": "2017-04-24T15:40:00.000Z", "completeDate": "2017-04-23T21:46:37.098Z", "originBoardId": 114 }, { "id": 808, "state": "closed", "name": "2017 Sprint 03 SDK", "startDate": "2017-01-28T21:12:30.215Z", "endDate": "2017-02-12T21:12:00.000Z", "completeDate": "2017-02-12T23:37:14.667Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "407181", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This PR should resolve your issue: https://github.com/appcelerator/titanium_mobile/pull/8747\r\n\r\nIt is currently in review.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-16T13:38:56.000+0000", "updated": "2017-02-16T13:38:56.000+0000" }, { "id": "407578", "author": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "HI Gary,\r\n\r\nGreat to hear this. Could you please compile an SDK with this PR so I can test as well?\r\n\r\nThanks,\r\n\r\nNikita.", "updateAuthor": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-22T15:23:14.000+0000", "updated": "2017-02-22T15:23:14.000+0000" }, { "id": "411750", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nradaev], You can check if this fixes your issue with SDK 6.0.3.v20170310122139.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-13T23:53:36.000+0000", "updated": "2017-03-13T23:53:36.000+0000" }, { "id": "411755", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR : https://github.com/appcelerator/titanium_mobile/pull/8747 & https://github.com/appcelerator/titanium_mobile/pull/8879 has passed FR & been merged.\r\n\r\nClosing this ticket.\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-13T23:55:03.000+0000", "updated": "2017-03-13T23:55:03.000+0000" }, { "id": "413486", "author": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Almost there. This fix only works when the app was originally launched using app icon. It does not work when the app was launched using URL. Here is the test case:\r\n\r\n1. Start the app via URL: banking.meridiancu.ca/test_login\r\n2. Pause the app\r\n3. Resume the app via different URL : banking.meridiancu.ca/security_login\r\n4. Pause the app\r\n5. Resume the app using original URL: banking.meridiancu.ca/test_login\r\n\r\nObserve: no alert thrown, when \"Check URL\" is clicked banking.meridiancu.ca/security_login is being printed out.\r\n\r\nNot sure if that helps, but I am opening URL's via email (this is how we intend to use this feature).\r\n\r\nThank you,\r\n\r\nNikita.", "updateAuthor": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T14:32:38.000+0000", "updated": "2017-03-17T14:32:38.000+0000" }, { "id": "413487", "author": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on S7 using SDK 6.1.0.v20170315005008\r\n", "updateAuthor": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T14:34:32.000+0000", "updated": "2017-03-17T14:34:32.000+0000" }, { "id": "413875", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nradaev], The url's in your test can't be accessed. Can you provide other url's which we can access ? \r\nI tried with similar {{intent-filter}}\"\r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n{code}\r\nFollowed your steps in your most recent comment & I am opening the URL's from gmail. When I resume the app second time with the original URL, I do get the original URL.\r\n\r\nMy app.js code:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar lbl = Ti.UI.createLabel({\r\n\ttext:'Check URL',\r\n\ttop: 60\r\n});\r\n\r\nlbl.addEventListener('click',function(){\r\n\tTi.API.info('************************************ URL :'+Ti.Android.currentActivity.intent.data);\r\n\talert(Ti.Android.currentActivity.intent.data);\r\n});\r\n\r\nwin.add(lbl);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T18:33:58.000+0000", "updated": "2017-03-20T18:33:58.000+0000" }, { "id": "413933", "author": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Lokesh,\r\n\r\nI've tested your example and the reason it appears to be working for you is because 2nd URL never shows up! (OOPS...)\r\n\r\nIf you look closer at my original example you will see that I utilize Alloy.Globals.lauch_url to see which URL is being opened/resumed with. This is because every time I resume/open the app It is being reloaded (except for my buggy case). I am fine with this behavior as long as it is consistent. \r\n\r\nFurthermore, you do not even need a working URL in order to test my example. Intent-filter intercepts intent request and is supposed to open/resume the app instead of opening URL with the browser. \r\n\r\nIf you insist that this is a working fix, I will need a video demonstration as well as a working project code.\r\n\r\nNikita.", "updateAuthor": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T20:34:20.000+0000", "updated": "2017-03-20T20:34:20.000+0000" }, { "id": "414153", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to look further into this issue. ", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T01:05:19.000+0000", "updated": "2017-03-21T01:05:19.000+0000" }, { "id": "414197", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8897", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T16:04:43.000+0000", "updated": "2017-03-21T16:04:43.000+0000" }, { "id": "414354", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8901", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T20:04:06.000+0000", "updated": "2017-03-21T20:04:06.000+0000" }, { "id": "414842", "author": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Gary,\r\n\r\nHere is a short video to display behaviour I am experiencing.\r\n\r\nhttps://drive.google.com/file/d/0B_ilPkP8PASfeUpJZmVWaDFRa2s/view?usp=sharing\r\n\r\nNikita.", "updateAuthor": { "name": "nradaev", "key": "nradaev", "displayName": "Nikita Radaev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T18:09:38.000+0000", "updated": "2017-03-22T18:09:38.000+0000" }, { "id": "414876", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Due to the complexities with Kroll related to intents, we are unable to resolve this for 6.0.3. We tried several commits and test cycles and there were issues with each. So we will move this to a 6.0.4 release, in order to provide a well engineered and well-tested fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T18:53:19.000+0000", "updated": "2017-03-22T18:53:19.000+0000" }, { "id": "416092", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8910", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T23:14:04.000+0000", "updated": "2017-03-28T23:14:04.000+0000" }, { "id": "417868", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Done. \r\nMerged 6.0.4 PR waiting for build from CI to close.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-21T22:36:09.000+0000", "updated": "2017-04-21T22:36:09.000+0000" }, { "id": "417875", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in 6.0.4.v20170421153428.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-21T23:56:16.000+0000", "updated": "2017-04-21T23:56:16.000+0000" }, { "id": "418109", "author": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "body": "I've just tried version 6.0.4.v20170425123820 and this solution seems sub-par.\r\n\r\nThe app DOES consistently receive URL intents now, but the way it reloads the app every time seems very wrong. The way it restarts my app (as judged by the splash screen that i see occurring when clicking my custom URL scheme from the android browser) cant be correct.\r\n\r\nI'd very much like to see a how-to or a testcase in where both the tiapp.xml as the js-implementation is shown on how to properly catch such events. There is a possibility I have something wrong in my code but I really cant tell by looking at the existing guides.\r\n\r\nAlso, the addition of custom tiapp.xml properties like \"intent-filter-new-task\" blurs the correct implementation even more.", "updateAuthor": { "name": "creative_jira_user", "key": "uzbbert", "displayName": "Creative", "active": false, "timeZone": "Europe/Amsterdam" }, "created": "2017-04-26T15:11:07.000+0000", "updated": "2017-04-26T15:11:07.000+0000" } ], "maxResults": 21, "total": 21, "startAt": 0 } } }