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 #946 - Don't show multiple notifications for reminders #947

Merged
merged 1 commit into from
Dec 13, 2018

Conversation

barbeau
Copy link
Member

@barbeau barbeau commented Dec 13, 2018

Fixes #946.

  • Allows various application components to explicitly specify whether or not the TripService should run in the foreground
  • Never run in the foreground for ACTION_NOTIFY to avoid the "sticky" notification that shows while the service is running
  • Always run in the foreground on device reboot
  • Run in foreground for most other situations, even as a result of UI interactions. We could potentially scale this back if it's not found to be necessary.
  • Remove deprecated onStart() method, which dates back to Android 2.0 (TBT)
  • Some code cleanup
  • Update What's New text to remove reference to "sticky" notifications

@paulnabanita1 Could you please review and test? New expected behavior is that we shouldn't see the foreground service notification when the reminder notifications trigger.

* Allows various application components to explicitly specify whether or not the TripService should run in the foreground
* Never run in the foreground for ACTION_NOTIFY to avoid the "sticky" notification that shows while the service is running
* Always run in the foreground on device reboot
* Run in foreground for most other situations, even as a result of UI interactions.  We could potentially scale this back if it's not found to be necessary.
* Remove deprecated onStart() method, which dates back to Android 2.0 (TBT)
* Some code cleanup
* Update What's New text to remove reference to "sticky" notifications
@paulnabanita1
Copy link
Contributor

@barbeau: Thank you for the review request.
I have tested the implemented changes and the app is no longer triggering multiple notifications (one indicating that a service is running in foreground) for bus arrivals. Also, after setting a reminder, I rebooted the device and the app successfully provided notifications for arrivals.

@barbeau
Copy link
Member Author

barbeau commented Dec 13, 2018

Thanks @paulnabanita1!

@barbeau barbeau merged commit 177158c into master Dec 13, 2018
@barbeau barbeau deleted the multiple-notifications branch December 13, 2018 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants