katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.56k stars 1.74k forks source link

Notification or sound Not running #1504

Open irontamoor opened 6 years ago

irontamoor commented 6 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

Expected Behavior

Tell us what should happen

id:2 - every friday bring up notifcation id:100 etc- every time written bring notifcation and sound file

Actual Behavior

Tell us what happens instead

id:2 - nothing id:100 etc- nothing tried changing time and dates result nothing

Steps to Reproduce

Reproduce this issue; include code to reproduce, if relevant

code in js file which is linked in script pointing to index.html index.html

would like to host online once working also would like to use firbase with code once working.

cordova.plugins.notification.local.schedule([{ id:2, text: 'Jumma Mubrak!', firstAt: friday, trigger: { every: { hour: 07, minute: 00 } }

}]);

cordova.plugins.notification.local.schedule({ id:100, text: 'Fajr Prayer Time', trigger: { every: { hour: 7, minute: 00 } }, sound: 'file://sound/athan.mp3'

}, callback);

cordova.plugins.notification.local.schedule({ id:101, text: 'Sunrise Stop Praying', trigger: { every: { hour: 8, minute: 00 } }, sound: 'file://sound/athan.mp3'

}, callback);

cordova.plugins.notification.local.schedule({ id:102, text: 'Zuhur Prayer Time', trigger: { every: { hour: 13, minute: 00 } }, sound: 'file://sound/athan.mp3'

}, callback);

cordova.plugins.notification.local.schedule({ id:103, text: 'Asr Prayer Time', trigger: { every: { hour: 15, minute: 00 } }, sound: 'file://sound/athan.mp3'

}, callback);

cordova.plugins.notification.local.schedule({ id:104, text: 'Magrib Prayer Time', trigger: { every: { hour: 18, minute: 00 } }, sound: 'file://sound/athan.mp3'

}, callback);

cordova.plugins.notification.local.schedule({ id:105, text: 'Isha Prayer Time', trigger: { every: { hour: 20, minute: 00 } }, sound: 'file://sound/athan.mp3'

}, callback);

Context

What were you trying to do?

id:2 - every friday bring up notifcation id:100 etc- every time written bring notifcation and sound file

tried changing time and dates result nothing

Debug logs

Include iOS / Android logs

katzer commented 6 years ago

@irontamoor Do you see the same JS error as described in #1502 ?

irontamoor commented 6 years ago

No, I get no error message all installs fines the apk is built a notification which shows text works fine but not the above ones

katzer commented 6 years ago

apk? You mentioned win10 x64as the OS. What's your Android version, etc.?

irontamoor commented 6 years ago

I'm using the 5.1.1 also 6

katzer commented 6 years ago

Cannot reproduce...

marceloagil commented 6 years ago

Same error here. Android 6, Phonegap downgraded to 6 to use the cordova-plugin-local-notifications#0.8.5 and nothing...