atomic-plugins-notifications's People
atomic-plugins-notifications's Issues
Initialization bug in cocoon_notifications.js
The callback in this example from the README always sends out the alert that notifications are disabled:
Cocoon.Notification.Local.initialize({}, function(registered) {
if (!registered) {
alert('Notifications disabled by user')
}
else {
sendNotification();
}
})
This is because there's a bug in line 130 of cocoon_notifications.js
that ensures that registered
is always false
: https://github.com/ludei/atomic-plugins-notifications/blob/master/src/js/cocoon_notifications.js#L130
Until that bug is fixed, this is a workaround that should work:
Cocoon.Notification.Local.initialize({}, function (registered) {
Cocoon.Notification.Local.isRegistered(function (granted) {
if (!granted) {
alert('Notifications disabled by user');
} else {
sendNotification();
}
});
});
Not registering for notifications
Hi!
This is my code:
Cocoon.Notification.Local.initialize({}, function(registered) {
if (!registered) {
alert('Notificaciones deshabilitadas por el usuario');
Cocoon.Notification.Local.register();
}
else {
//sendNotification();
}
});
mandaNotificacion("No circula:","Mañana no circula la placa "+$('#placas').val());
I receive a not registered error and notifications are not working,
please help 😁
Local notifications don't work with Canvas+
If I use Canvas+, notifications are received immediately, no matter what time I set in notification properties (date). It works only with Webview.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.