katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.57k stars 1.75k forks source link

Custom sound not working in IOS 10 #1375

Closed LtotheWT closed 6 years ago

LtotheWT commented 7 years ago

WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!

Provide a general summary of the issue.

Your Environment

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.9.2
ionic (Ionic CLI) : 3.9.2

global packages:

Cordova CLI : 7.0.1 

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : ios 4.4.0
Ionic Framework    : ionic-angular 3.6.0

System:

ios-sim : 6.0.0 
Node    : v8.1.2
npm     : 4.6.1 
OS      : macOS Sierra
Xcode   : Xcode 8.3.3 Build version 8E3004b 

Expected Behavior

The notification should play the desire sound

Actual Behavior

the notification does not play the desire sound, no sound at all

Steps to Reproduce

the song.wav is in www/audio

let options = {
        id: this.info.id,
        title: this.info.title,
        text: this.info.message,
        at: new Date(this.info.enddate),
        sound: 'file://audio/song.wav',
    };
this.localNotifications.schedule(options);

Context

make the notification to play the desire sound

Debug logs

Include iOS / Android logs

katzer commented 6 years ago

If the permission has been granted, than its working. I can try out with success.