Skip to content

Commit

Permalink
Merge pull request #91 from humhub/88-silent-flutterchannel-registerf…
Browse files Browse the repository at this point in the history
…cmdevice-output

Wait for complete callback
  • Loading branch information
luke- authored Jul 9, 2023
2 parents 7beafad + 5b92d04 commit c36d225
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/pages/web_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ class WebViewAppState extends ConsumerState<WebViewApp> {
if (token != null) {
var postData = Uint8List.fromList(utf8.encode("token=$token"));
controller
.postUrl(url: Uri.parse(message.url!), postData: postData)
.then((value) => controller.reload());
.postUrl(url: Uri.parse(message.url!), postData: postData).whenComplete(() => controller.reload());
}
var status = await Permission.notification.status;
// status.isDenied: The user has previously denied the notification permission
Expand Down

0 comments on commit c36d225

Please sign in to comment.