-
Notifications
You must be signed in to change notification settings - Fork 723
[flutter] add local_notifier plugin & show local notification on update available #3724
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3724 +/- ##
=======================================
Coverage 88.92% 88.92%
=======================================
Files 254 254
Lines 14299 14299
=======================================
Hits 12716 12716
Misses 1583 1583 ☔ View full report in Codecov by Sentry. |
f7aaca2
to
b8c8344
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few small nitpicks :)
b8c8344
to
621dd88
Compare
body: 'Version ${updateInfo.version} is available. Click to upgrade now.', | ||
); | ||
|
||
notification.onClick = launchInstallUrl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof, I thought that the notification will automatically close when you click it, but it doesn't, so it must be closed manually.
notification.onClick = launchInstallUrl; | |
notification.onClick = () async { | |
await launchInstallUrl(); | |
await notification.close(); | |
}; |
621dd88
to
88645ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks @levkropp!
No description provided.