-
Notifications
You must be signed in to change notification settings - Fork 34
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
β LocalNotify
is not used anymore (is that ok?)
#1028
Comments
Verdict:'Reminders', and all other local notifications, are working fine even though
The 'reminders' notifications also only need to open to the (default) Label tab, so they're fine. Later, it's likely that we will want to re-implement routed notifications. But since we do the routing with React now, the implementation will be vastly different. Thus, there is little reason to keep the old |
Did we actually test against 'Reminders'? If so, please document here. |
I tested it in the devapp by spinning up a new OPcode on the 'timeuse' configuration, changing the 'reminder time' to a few minutes from the current time and minimizing the app. A notification came at the specified time, and when clicked, it launched the app. To test it on staging, we need new OPcodes or we need to make the reminder scheme last for more than ~1 week |
Interesting. I think we can also test by uninstalling, editing your opcode's profile to remove the reminder scheme and then reinstalling. That will keep the data but set the notifications, right? |
After the reminder settings were cleared for my opcode, I tested again by adjusting the 'reminder time' and waiting for a notification to arrive. It came as expected and was functional. I did not need to uninstall and reinstall. Just to be sure, I will keep monitoring through Friday to see that the notifications keep coming according to the scheme. I did notice one other issue, though: the list of "upcoming notifications" in the developer zone is not in order. It should be sorted by time (soonest first) Maybe this is something @sebastianbarry can address while working on e-mission/e-mission-phone#1092 |
Fixed notifications scheduled out of order in e-mission/e-mission-phone@0ee468a |
The reminders ran their course on my test phone according to the scheme, with the last one on Friday. I think we are good here. |
By my count, there is only one Angular service rewrite left that doesn't already have an open PR (yay! π), and we are not even sure that we need it!
@jiji14 was going to begin on
LocalNotify
but could not find any instance of the service being invoked. I tried also, and found thatLocalNotify
is injected bySplashCtrl
, which has not been in use since the onboarding changes.As a result,
LocalNotify
is still initialized onmaster
but not onservice_rewrite_2023
.Since these changes, we have not noticed any regressions regarding local notifications, so this might be completely fine. When a permission is revoked, we still get prompted to open the app and the UX of doing so is smooth, so the permissions notifications have not seen regressions at least.
But I want to make sure there are no regressions in the 'reminders' before saying it's ok to let go of
LocalNotify
.The text was updated successfully, but these errors were encountered: