{ "id": "172935", "key": "AC-6117", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2019-03-14T17:48:00.000+0000", "created": "2019-01-30T17:38:32.000+0000", "labels": [], "versions": [ { "id": "17032", "name": "Appcelerator Studio 4.3.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-03-14T17:48:02.000+0000", "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" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The Titanium Android Audio Media player stops streaming in the background when the device is on battery power. This typically happens after about 5 minutes when the Android Doze power management system kills off the player.\r\n\r\nAdding the affected application as Power Management Exception disables this unwanted functionality. The steps to add the application as an exception are as follows:\r\n\r\n1) Open Settings\r\n2) Touch \"Apps & Notifications\"\r\n3) Touch \"Application_Name\"\r\n4) Touch \"Advanced\"\r\n5) Touch \"Battery\"\r\n6) Touch \"Power-saving feature\"\r\n7) Touch \"OK\" at the pop up notification\r\n8) Touch the \"Apps\" menu item at the top\r\n9) Choose the Application_Name app checkbox to enable a power management exception\r\n\r\nThe Titanium Android Audio Player, by default, needs to not be subject to halting by the Android Doze Mode capabilities. \r\n", "attachment": [], "flagged": false, "summary": "Android Audio Media Player Stops from Android Doze Mode", "creator": { "name": "lindsay@radioreference.com", "key": "lindsay@radioreference.com", "displayName": "lindsay@radioreference.com", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lindsay@radioreference.com", "key": "lindsay@radioreference.com", "displayName": "lindsay@radioreference.com", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium 7.5.0 GA\r\nAndroid 9\r\n", "comment": { "comments": [ { "id": "446033", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Since this behavior is a native Android default behavior Titanium apps are supposed to behave like this. The audio player API just mimic a part of the native sound-related functionality. This is more like a request, not a bug. Thanks. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-02-12T22:16:47.000+0000", "updated": "2019-02-12T22:17:04.000+0000" }, { "id": "446134", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nDid you find our last reply helpful for your progress? Let us know the updates from your end.\r\n", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-02-18T11:02:36.000+0000", "updated": "2019-02-18T11:02:36.000+0000" }, { "id": "446140", "author": { "name": "lindsay@radioreference.com", "key": "lindsay@radioreference.com", "displayName": "lindsay@radioreference.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "My understanding is that this is not correct behavior for the Android Media Player. It should be automatically excluded from the power management doze features... ", "updateAuthor": { "name": "lindsay@radioreference.com", "key": "lindsay@radioreference.com", "displayName": "lindsay@radioreference.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-18T13:19:30.000+0000", "updated": "2019-02-18T13:19:30.000+0000" }, { "id": "446147", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~jquick],\r\n\r\nThis issue can be new feature request,not a bug. Any thoughts? ", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-02-19T09:21:09.000+0000", "updated": "2019-02-19T09:21:09.000+0000" }, { "id": "446162", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Google wants you to run a \"foreground\" service in this case, which will show a notification in the top status bar informing the end-user that your app is doing work in the background. As of Android 8.0, Google has made a breaking-change where the OS will throttle particular operations such as audio playback, sensor data collection, etc. while backgrounded unless you enable a foreground service.\r\nhttps://developer.android.com/about/versions/oreo/background\r\n\r\nAs of Titanium 7.3.0, we've added \"foreground\" service support. Please see the code example below on how to implement it.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/10076\r\n\r\nAlso note that you need to add the following Android permission in order to use a foreground service. This is required on Android 9.0 devices.\r\n{code:xml}\r\n\r\n{code}\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-19T18:53:14.000+0000", "updated": "2019-02-19T18:53:14.000+0000" }, { "id": "446163", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~lindsay@radioreference.com], As we said this is an Android native audio player behavior, and we will consider this as a feature request. But first, we need the native Android guide links of how this exception is achieved natively. After that, we will forward this to our engineering for consideration. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-02-19T18:54:25.000+0000", "updated": "2019-02-19T18:54:25.000+0000" }, { "id": "446472", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nWe haven't heard back from you since our last response. I am just following up to check the status of this case and if you need further help on it. ", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-03-04T09:23:47.000+0000", "updated": "2019-03-04T09:23:47.000+0000" }, { "id": "446822", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nDid you able to find this issue resolved ? Let us know the current status of your issue and if you need further help on it.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-03-14T09:18:19.000+0000", "updated": "2019-03-14T09:18:19.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }