Skip to content

[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

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

levkropp
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.92%. Comparing base (521a43e) to head (88645ec).
Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@levkropp levkropp force-pushed the flutter-update-notifications branch 2 times, most recently from f7aaca2 to b8c8344 Compare October 12, 2024 18:49
Copy link
Contributor

@andrei-toterman andrei-toterman left a 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 :)

@levkropp levkropp force-pushed the flutter-update-notifications branch from b8c8344 to 621dd88 Compare October 12, 2024 19:38
@levkropp levkropp marked this pull request as ready for review October 12, 2024 19:38
body: 'Version ${updateInfo.version} is available. Click to upgrade now.',
);

notification.onClick = launchInstallUrl;
Copy link
Contributor

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.

Suggested change
notification.onClick = launchInstallUrl;
notification.onClick = () async {
await launchInstallUrl();
await notification.close();
};

@levkropp levkropp force-pushed the flutter-update-notifications branch from 621dd88 to 88645ec Compare October 15, 2024 14:04
Copy link
Contributor

@andrei-toterman andrei-toterman left a comment

Choose a reason for hiding this comment

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

Perfect, thanks @levkropp!

@andrei-toterman andrei-toterman added this pull request to the merge queue Oct 15, 2024
Merged via the queue into main with commit a5a936d Oct 15, 2024
14 checks passed
@andrei-toterman andrei-toterman deleted the flutter-update-notifications branch October 15, 2024 19:00
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.

2 participants