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

Fix example app cancel notification #869

Merged
merged 1 commit into from
Oct 8, 2018

Conversation

hshiraiwa
Copy link

When testing the example app, I found it unable to cancel the last notification.
This issue was caused by the lastId variable representing the next id to be used instead of the id of the last created notification.
Because of that the cancelNotif function would try to cancel a notification not yet created.

To test this change:

  • Run the example app
  • Press Schedule a notification in 30s
  • Press Cancel last notification (if any)
  • Check if the scheduled notification was cancelled

The `lastId` should reflect the last id used not the next id to be used.
When the lastId is set to the next id to be used the `cancelNotif`
function will try to cancel a id not yet used.
@Gp2mv3 Gp2mv3 merged commit 1143632 into zo0r:master Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants