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

Update event callback is passed the original notification, not the updated one #1016

Closed
jim0020 opened this issue Jun 21, 2016 · 2 comments
Closed

Comments

@jim0020
Copy link

jim0020 commented Jun 21, 2016

On iOS, when a notification is updated using .update(), the registered callback is called but the original notification is passed to the callback, not the new version. To get the new data for the notification in the update callback I have to call cordova.plugins.notification.local.get( notification.id, callback_to_process_updated_notification ). Is this the intended behavior?

@rwillett
Copy link
Collaborator

Is this still an issue? Fill out #1188 with more information.

As an aside its normally better to kill the old notification and reschedule a new one. Its the same logic but does seem to work.

@rwillett
Copy link
Collaborator

Closed as no update from original poster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants