Skip to content

Commit

Permalink
Update background_location.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Almoullim authored Nov 8, 2020
1 parent 2a93995 commit 2d3ca13
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/background_location.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ class BackgroundLocation {
}

static setNotificationTitle(String title) async {
var result

if (Platform.isAndroid) {
return await _channel.invokeMethod("set_notification_title", <String, dynamic>{
result = await _channel.invokeMethod("set_notification_title", <String, dynamic>{
"title": title
});
} else {
return Promise.resolve();
}

return result
}

/// Get the current location once.
Expand Down

0 comments on commit 2d3ca13

Please sign in to comment.