How to get data on didReceiveNotification Background Process #198

Closed
silasakk opened this Issue Oct 4, 2015 · 3 comments

Projects

None yet

2 participants

@silasakk
silasakk commented Oct 4, 2015

this background
2015-10-04 13:49:43.284 MaskOA[1591:376661] didReceiveNotification
2015-10-04 13:49:46.633 MaskOA[1591:376661] didReceiveNotification

i want call function when didReceiveNotification on background

this foreground
2015-10-04 13:54:58.122 MaskOA[1591:376661] Notification received
2015-10-04 13:54:58.122 MaskOA[1591:376661] Push Plugin key: alert
2015-10-04 13:54:58.122 MaskOA[1591:376661] Push Plugin key: sound
2015-10-04 13:54:58.123 MaskOA[1591:376661] Push Plugin key: content-available

push.on('notification', function (data) {
                // data.message,
                // data.title,
                // data.count,
                // data.sound,
                // data.image,
                // data.additionalData
                //console.log('xxx');

});
@macdonst
Member
macdonst commented Oct 5, 2015

@silasakk Do you mean you want the notification even to be fired when your app is in the background?

@macdonst
Member
macdonst commented Oct 5, 2015

@silasakk duplicate of issue #93 please +1 that thread.

@macdonst macdonst closed this Oct 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment