Skip to content
This repository was archived by the owner on Feb 7, 2019. It is now read-only.
This repository was archived by the owner on Feb 7, 2019. It is now read-only.

Notification uses default sound instead of custom on Android 8 Oreo #204

Open
@ickata

Description

@ickata

Which platform(s) does your issue occur on?

  • Android 8 Oreo

Please, provide the following version numbers that your issue occurs with:

  • CLI: 3.4.3
  • Cross-platform modules: 3.4.1
  • Runtime(s): 3.4.2
  • Plugin(s):
    "nativescript-drop-down": "3.1.1",
    "nativescript-geolocation": "4.2.0",
    "nativescript-google-maps-sdk": "2.4.2",
    "nativescript-ios-uuid": "1.0.0",
    "nativescript-iqkeyboardmanager": "1.0.1",
    "nativescript-local-notifications": "1.2.2",
    "nativescript-phone": "1.3.0",
    "nativescript-push-notifications": "1.1.2",
    "nativescript-theme-core": "1.0.4",

Please, tell us how to recreate the issue in as much detail as possible.

Include a wav file in App_Resources folder:

nativescript-demo-app/app/App_Resources/Android/raw/notify.wav

Build the app and deploy to Android 8 Oreo device.

Send push notification to device with the following payload:

   {
      to    : 'token',
      data  : {
         message     : 'message',
      },
      notification : {
         title       : 'title',
         body        : 'message',
         icon        : 'icon_notify',  // defined in App_Resources
         sound       : 'notify',       // defined in App_Resources
      },
   }

On older versions the custom sound is played, on Oreo default sound is used instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions