aalok05 / CodeHub

A UWP GitHub Client
MIT License
177 stars 34 forks source link

Background tasks not working when the app is closed #125

Open rafsanulhasan opened 6 years ago

rafsanulhasan commented 6 years ago

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Question

Current behavior

When the app is opened, deactivated (not in focus), or minimized all background tasks works as expected

Expected behavior

When the app is closed all background tasks works as expected

Steps to reproduce the behavior

  1. Open the app and navigate to notifications page
  2. Keep the app opened.
  3. Login to GitHub
  4. Wait for the toasts to arrive, click any of the toast's read button
  5. see toast has gone, in github's notifications page it will be gone, and in our app as well
  6. Mark any notification as read from github's web interface and wait for 15 mins to allow the background task to trigger and sync the notifications in the app's notifications view and toasts as well

this workflow does not work when the app is closed

Environment