You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
@smileapplications that doesn't seem correct at all. I'm closing this issue as it does not seem to provide any information. Please feel free to re-open with more info.
Hello everyone,
i'm writing this because I spent 2 days looking at this problem and I don't want other people to lose so much time.
If your notifications are fired only on foreground and not in background is because you only called init() without on('registration')
You need to do like this:
var push = PushNotification.init(options); push.on("registration", function(token) {}); push.on("notification", function(notification) { alert("Notification clicked"); }
The text was updated successfully, but these errors were encountered: