Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

[FIX] notification not fired when app is in background/killed ? Check this out #502

Closed
matteocarde opened this issue Jan 14, 2016 · 2 comments

Comments

@matteocarde
Copy link

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"); }

@macdonst
Copy link
Member

@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.

@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants