{ "id": "64064", "key": "TIMOB-3432", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13207", "name": "Sprint 2012-07", "archived": true, "released": true, "releaseDate": "2012-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-06T17:55:19.000+0000", "created": "2011-04-15T03:45:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T22:21:13.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

A helpdesk\r\nticket encounter a problem while coming back to the app after\r\nit has been in the background (multitasking).

\r\n

If the app is opened from being close, Ti.App.getArguments().url\r\nreturn nothing, and if it is opened again from backgrounding, it\r\nalso returns nothing. This is fine, but when the app is launched\r\nfrom Safari (for example: app://), getArguments().url returns\r\n\"app://\" (or whatever the name of the app is) as expected. If the\r\napp is placed in the background again and reopened normally, the\r\nsame url appears as if it was opened through safari.

\r\n

More details and sample app.js in helpdesk ticket 76659.

{html}", "attachment": [], "flagged": false, "summary": "iOS: Clear app url from App Arguments on resume", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "161690", "author": { "name": "asghar.07", "key": "asghar.07", "displayName": "asghar ali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can somebody please look into this... ? Need to clear app url on resume...", "updateAuthor": { "name": "asghar.07", "key": "asghar.07", "displayName": "asghar ali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-03T09:08:45.000+0000", "updated": "2011-08-03T09:08:45.000+0000" }, { "id": "188561", "author": { "name": "kellymredd@gmail.com", "key": "kellymredd@gmail.com", "displayName": "kelly redd", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please. Experiencing same behavior when launching app from Mail. Arguments persist regardless of who/what launched the app, so if any actionable code is in place to fire based on the url it's fired over and over...not really trivial, imo. Been waiting on a fix for over a year, thanks!", "updateAuthor": { "name": "kellymredd@gmail.com", "key": "kellymredd@gmail.com", "displayName": "kelly redd", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T07:27:07.000+0000", "updated": "2012-03-26T07:27:07.000+0000" }, { "id": "189727", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/1914", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-03T15:59:08.000+0000", "updated": "2012-04-03T15:59:08.000+0000" }, { "id": "362434", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "This issue appears to have returned. When app isn't fully backgrounded (double-home-tap)\r\n\r\nAfter launching or resuming the app via an appname:// url scheme (which works fine), if you *fully* background the app, then resume it, the launchOptions url and source are cleared (which resolved this initial issue).\r\n\r\n*BUT*, if you launch the app via a url, then double-tap home (or Shift+CMD+H twice quickly in the simulator) to display the swipeable app closer/selector - ie: not *fully* backgrounded - then re-focus the initial app, the launchOptions are still present in Ti.App.getArguments as the app is 'resumed'. \r\n\r\n\r\nUpdate: Looking the fix made in TiApp.m, the launchOptions are cleared when the app \"applicationWillEnterForeground\" fires. However, when you double-tap the home button to show the swipeable app chooser, the apps 'pause' event fires, but not the (fully) 'paused' event. \r\n\r\nWould this be related to why the options are not being cleared when returning from this state? \r\n\r\n\r\nUpdate 2 : It appears that when the app goes to the multitasking app-switcher and back again, only 'applicationWillResignActive' and 'applicationDidBecomeActive' is fired. ie : applicationWillEnterForeground is never fired. \r\n\r\n\r\n\r\n", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2015-09-07T10:16:51.000+0000", "updated": "2015-09-07T10:42:53.000+0000" }, { "id": "416586", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed, if there are any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:21:13.000+0000", "updated": "2017-03-31T22:21:13.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }