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

Add background workers functionality and notification background support #645

Merged
merged 32 commits into from
Mar 16, 2023

Conversation

LuisDuarte1
Copy link
Member

@LuisDuarte1 LuisDuarte1 commented Nov 12, 2022

Initial work for displaying notifications when even UNI is closed

Add workerCallback (iOS and android support)
Add NotificationManager (android support only for now, because I need a macbook to complete background worker support).

Review checklist

  • Terms and conditions reflect the current change
  • Contains enough appropriate tests
  • If aimed at production, writes new summary in whatsnew/whatsnew-pt-PT
  • Properly adds entry in changelog.md with the change
  • If PR includes UI updates/additions, its description has screenshots
  • Behavior is as expected
  • Clean, well structured code

LuisDuarte1 and others added 2 commits November 11, 2022 15:44
Co-authored-by: Sirze01 <Sirze01@users.noreply.github.com>
Co-authored-by: Sirze01 <Sirze01@users.noreply.github.com>
@LuisDuarte1 LuisDuarte1 changed the title Add background workers functionality to the app. Add background workers functionality and notification background support Nov 12, 2022
@LuisDuarte1
Copy link
Member Author

feature 3

@LuisDuarte1
Copy link
Member Author

image

Agora com icone

@LuisDuarte1
Copy link
Member Author

image

Toggle para as notificações

@brunogomes30 brunogomes30 marked this pull request as ready for review January 18, 2023 15:30
Copy link
Contributor

@Sirze01 Sirze01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from testing on IOS it seems to be going well. Please address and submit some feedback on the comments I made.

uni/android/app/build.gradle Outdated Show resolved Hide resolved
uni/lib/controller/backgroundWorkers/notifications.dart Outdated Show resolved Hide resolved
Sirze01
Sirze01 previously approved these changes Jan 28, 2023
Copy link
Contributor

@Sirze01 Sirze01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it it is good to go. Any news on the IOS side of things? @thePeras

@bdmendes bdmendes mentioned this pull request Feb 3, 2023
8 tasks
@thePeras
Copy link
Member

It appears to working as expected!

The only thing lasting is to discuss if the notifications are to be defaulted enable or not, as it can be annoying to be asked to accept notifications launching the app for the first time.

thePeras
thePeras previously approved these changes Feb 19, 2023
Copy link
Member

@thePeras thePeras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Copy link
Member

@bdmendes bdmendes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very complex issue, so congratulations on the results! However, the code is still far from ready regarding readability and tidiness. I have left some suggestions; on top of that, please review all the changes and format the code properly.
I'll test this more extensively when you get the chance to improve on this, please let me know then.

uni/lib/controller/background_workers/notifications.dart Outdated Show resolved Hide resolved
uni/lib/controller/networking/network_router.dart Outdated Show resolved Hide resolved
uni/lib/redux/reducers.dart Outdated Show resolved Hide resolved
uni/lib/controller/background_workers/notifications.dart Outdated Show resolved Hide resolved
uni/lib/controller/background_workers/notifications.dart Outdated Show resolved Hide resolved
uni/lib/controller/background_workers/notifications.dart Outdated Show resolved Hide resolved
uni/lib/controller/background_workers/notifications.dart Outdated Show resolved Hide resolved
Copy link
Member

@bdmendes bdmendes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please format all files properly with dart format to remove blank lines. I have also left some quick suggestions.

uni/android/app/build.gradle Outdated Show resolved Hide resolved
Copy link
Member

@bdmendes bdmendes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@bdmendes bdmendes merged commit 5c137fc into develop Mar 16, 2023
@bdmendes bdmendes deleted the feature/background-workers branch March 16, 2023 16:24
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.

4 participants