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