Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26953

Android: Modify Service.foregroundNotify() to support "foregroundServiceType" for Android Q

    Details

      Description

      Summary:
      Android Q requires foreground services to set a new "foregroundServiceType" setting to "location" in order to collect location data while the app is backgrounded.
      https://developer.android.com/preview/privacy/device-location#continuation-user-initiated-action

      Recommended Solution:
      We don't have to set "android:foregroundServiceType" in the "AndroidManifest.xml". We can set it dynamically via the new Android Q Service.startForeground() method overload which accepts a foregroundServiceType as a 3rd argument. We should modify Titanium's Service.foregroundNotify() to support this new setting as well.

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              jquick Joshua Quick
              Tester:
              Sohail Saddique
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration