Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS notifications not appearing in system tray #10

Closed
kanak-infoObjects opened this issue Jun 7, 2017 · 3 comments
Closed

IOS notifications not appearing in system tray #10

kanak-infoObjects opened this issue Jun 7, 2017 · 3 comments

Comments

@kanak-infoObjects
Copy link

Expected Behaviour

IOS notifications should appear in system tray similar to push notifications

Actual Behaviour

Notification arrives and the onclick event gets called automatically

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

IOS 10.3

Cordova CLI version and cordova platform version

6.5.0

Plugin version

1.0.1

Sample Code that illustrates the problem

var notification = new Notification('My Title', {
tag: 'MESSAGE',
body: 'BODY'
})
notification.onclick = ()=>{
alert("clicked"):
}

Logs taken while reproducing problem

Notification received
2017-06-07 20:07:47.064279+0530 [352:36988] Push Plugin key: alert
2017-06-07 20:07:47.064626+0530 [352:36988] Push Plugin key: sound
2017-06-07 20:07:47.148404+0530 [352:36988] got local notification
2017-06-07 20:07:47.148519+0530 [352:36988] in plugin, local notification clicked

@macdonst
Copy link
Member

macdonst commented Jun 7, 2017

@kanak-infoObjects is your app in the foreground when you call notification?

@kanak-infoObjects
Copy link
Author

Yes

@macdonst
Copy link
Member

macdonst commented Jun 7, 2017

@kanak-infoObjects right, then this is a duplicate of Issue #8. Go give that a 👍

@macdonst macdonst closed this as completed Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants