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

How to get data on didReceiveNotification Background Process #198

Closed
silasakk opened this issue Oct 4, 2015 · 4 comments
Closed

How to get data on didReceiveNotification Background Process #198

silasakk opened this issue Oct 4, 2015 · 4 comments

Comments

@silasakk
Copy link

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
Copy link
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?

@silasakk
Copy link
Author

silasakk commented Oct 5, 2015

@macdonst yes

@macdonst
Copy link
Member

macdonst commented Oct 5, 2015

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

@macdonst macdonst closed this as completed Oct 5, 2015
@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