How do you enable Cordova.plugins.notification.local Visual Studio Cordova?

Asked

Viewed 46 times

2

I added the github link "https://github.com/katzer/cordova-plugin-local-notifications" and installed the plugin perfectly. I put a boot and in his click event I put the following code:

<script>
function abrir(){
    cordova.plugins.notification.local.schedule({
        title: 'My first notification',
        text: 'Thats pretty easy...',
        foreground: true
    });
}
</script>

In HTML I have:

<button onclick="abrir()">Teste</button>

Do I have to enable something on the phone to allow trigger notification? Because when I click the button nothing happens

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.