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

background notification question #756

Closed
superainovacoes opened this issue Mar 28, 2016 · 4 comments
Closed

background notification question #756

superainovacoes opened this issue Mar 28, 2016 · 4 comments

Comments

@superainovacoes
Copy link

Expected Behaviour

event/notifcation for receive/clear/read the push notification on device

Scenario: i need to make a request for an api to set a date when the push delivere to the device, another request to set a date when the app is open by clicking the push and if possible an request when the user clear/slide to remove the push.

Actual Behaviour

notification event is fired only when the client click to push notification

Reproduce Scenario (including but not limited to) - on nodejs

var gcm = require('node-gcm');
var gcmService = new gcm.Sender('###');
var message = new gcm.Message();
message.addData('content-available', '1');
message.addData('title', 'title');
message.addData('message', 'message');
gcmService.send(message, {
    registrationTokens: [###]
});

Steps to Reproduce - on phonegap

var PN = PushNotification.init(###);
PN.on('notification', function(data) {
    //fired only when user click the notification
});

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Android 5.1

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

android moto-x first gen.

Cordova CLI version and cordova platform version

PhoneGap (iOS / Android / Windows)
cli-6.0.0 (4.0.1 / 5.1.0 / 4.3.0)

Plugin version

phonegap-plugin-push - 1.6.1

<plugin name="phonegap-plugin-push">
     <param name="SENDER_ID" value="###" />
</plugin> 

Sample Push Data Payload

none

Sample Code that illustrates the problem - expected

var PN = PushNotification.init(###);

PN.on('notification.arrived', function(data) {
    //fired only when notification arrives the device
});

PN.on('notification.clear', function(data) {
    //fired only when user click clear/slide to remove notification
});

PN.on('notification.open', function(data) {
    //fired only when user click the notification
});

Logs taken while reproducing problem

none

@macdonst
Copy link
Member

@superainovacoes sorry to be a jerk but I'm going to start closing issues that don't follow the issue submission guidelines. This plugin takes a lot of work to maintain and I can't afford the time required to solicit the required info from everyone.

I'm closing this issue but please feel free to re-open the issue if you provide the requested details from the new issue submission guidelines.

@superainovacoes
Copy link
Author

sorry @macdonst, any more info needed just ask.

@macdonst macdonst reopened this Mar 29, 2016
@macdonst
Copy link
Member

@superainovacoes right, this is a duplicate of #158. Please comment on that issue.

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

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

No branches or pull requests

2 participants