bhandaribhumin / cordova-plugin-local-notification-12

Apache License 2.0
17 stars 35 forks source link

My app doesn't play notification sound and doesn't even show badge on launcher icon #10

Closed alexesto closed 11 months ago

alexesto commented 11 months 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 notification plays default sound and badge increments a value

Actual Behavior

Tell us what happens instead notification does not play sound and badge does not appear on the icon

Steps to Reproduce

Reproduce this issue; include code to reproduce, if relevant

  cordova.plugins.notification.local.schedule({
        id: 1,
        title: this.titleAlert,
        text: anotacao.descricao,
        trigger: { at: trigger },
        data: {id:anotacao.idAlerta, idNotificacao:idNotificacao},
        icon:'file://assets/icon/custom-icon.png',
        smallIcon:'res://assets/icon.png',
        vibrate: true,
        lockscreen: true,
    foreground: true,
        badge:1
    });

Context

What were you trying to do?

play default sound of phone notification a show badge on launch icon

Debug logs

Include iOS / Android logs

alexesto commented 11 months ago

Was permissions in app info

alexesto commented 11 months ago

Was permissions in app info