We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 should appear in system tray similar to push notifications
Notification arrives and the onclick event gets called automatically
IOS 10.3
6.5.0
1.0.1
var notification = new Notification('My Title', { tag: 'MESSAGE', body: 'BODY' }) notification.onclick = ()=>{ alert("clicked"): }
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
The text was updated successfully, but these errors were encountered:
@kanak-infoObjects is your app in the foreground when you call notification?
notification
Sorry, something went wrong.
Yes
@kanak-infoObjects right, then this is a duplicate of Issue #8. Go give that a 👍
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: