{ "id": "122688", "key": "TIMOB-15752", "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": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-20T22:19:48.000+0000", "created": "2013-11-20T02:48:57.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.2.0", "qe-nfc" ], "versions": [], "issuelinks": [ { "id": "33300", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "117459", "key": "TIMOB-14617", "fields": { "summary": "iOS7: Implement the new backgrounding techniques", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:54.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": "*Details:* Ti.App.iOS.BACKGROUNDFETCHINTERVAL_MIN and Ti.App.iOS.BACKGROUNDFETCHINTERVAL_NEVER returns 'undefined' which are used by Ti.App.iOS.setMinimumBackgroundFetchInterval(); the function accepts only number type arguments.\r\n\r\nNote: You can still pass a literal number parameter to setMinimumBackgroundFetchInterval function e.g. Ti.App.iOS.setMinimumBackgroundFetchInterval(12).\r\n\r\n*Steps to reproduce:*\r\n1. Create default app\r\n2. In app.js, add these two line of codes:\r\n{code}\r\nTi.API.info('min : ' + Ti.App.iOS.BACKGROUNDFETCHINTERVAL_MIN);\r\nTi.API.info('never: ' + Ti.App.iOS.BACKGROUNDFETCHINTERVAL_NEVER);\r\n{code}\r\n3. Launch app in either device or simulator\r\n4. Check xcode console\r\n\r\n*Actual:* The above code returns 'undefined' values.\r\n{code}\r\nNov 19 18:36:15 Europa monkey15749[833] : [INFO] min : undefined\r\nNov 19 18:36:15 Europa monkey15749[833] : [INFO] never: undefined\r\n{code}\r\n\r\n*Expected:* The above code should return a number values.", "attachment": [], "flagged": false, "summary": "iOS: Backgrounding - BACKGROUNDFETCHINTERVAL_MIN and BACKGROUNDFETCHINTERVAL_NEVER returns undefined", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 3.2.0.201311160316\r\nSDK build: 3.2.0.v20131118211643 \r\nXcode: 5.0.2\r\nDevices: iphone 5 (7.0.2)", "comment": { "comments": [ { "id": "280406", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Master PR https://github.com/appcelerator/titanium_mobile/pull/5000", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-20T22:02:41.000+0000", "updated": "2013-11-20T22:02:41.000+0000" }, { "id": "280430", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified both Ti.App.iOS.BACKGROUNDFETCHINTERVAL_MIN and Ti.App.iOS.BACKGROUNDFETCHINTERVAL_NEVER return a number:\n\n{code}\n[INFO] : min : 0\n[INFO] : never: 1.7976931348623157e+308\n{code}\n\nTested on:\n\nTitanium Studio, build: 3.2.0.201311200322\nSDK build: 3.2.0.v20131120142443\nCLI: 3.2.0-alpha\nAlloy: 1.3.0 (git://github.com/appcelerator/alloy.git#1_3_X)\nXcode: 5.0.2\nDevice: iphone 4 (7.0.2), iphone simulator (7.0.3)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-20T23:37:54.000+0000", "updated": "2013-11-20T23:37:54.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }