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

Android: Push notifications should create default channel if not assigned when targeting Android 8

    Details

      Description

      Summary:
      Our APS library (which implements Android push notifications) correctly uses Google's DEFAULT_CHANNEL_ID on Android 8 when targeting API Level 25 or lower.
      APSCloudPush.java#L409

      However, when targeting API Level 26 or higher, you cannot use Google's DEFAULT_CHANNEL_ID which means notifications will fail to be posted to the status bar. So, the APS library must be changed to create its own default notification channel if one was not supplied from the payload... and it should only do so when targeting API Level 26 or higher.

      Recommended Solution:
      We should use a similar solution used by Titanium's local notifications as shown here...
      https://github.com/appcelerator/titanium_mobile/pull/9945

      It probably should use a separate notification channel name than what Titanium uses. This may be needed to avoid collision with how Titanium configures its channel.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                jquick Joshua Quick
                Reviewer:
                Lokesh Choudhary
              • Watchers:
                4 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 Source Code