diff --git a/example/integration_test/util.dart b/example/integration_test/util.dart index 3bf631e6..031873ad 100644 --- a/example/integration_test/util.dart +++ b/example/integration_test/util.dart @@ -159,7 +159,7 @@ class MyChromeSafariBrowser extends ChromeSafariBrowser { @override void onPostMessage(String message) { if (!postMessageReceived.isCompleted) { - postMessageReceived.complete(); + postMessageReceived.complete(message); } } diff --git a/lib/src/chrome_safari_browser/chrome_safari_browser.dart b/lib/src/chrome_safari_browser/chrome_safari_browser.dart index 3090d895..0fe2ff2d 100755 --- a/lib/src/chrome_safari_browser/chrome_safari_browser.dart +++ b/lib/src/chrome_safari_browser/chrome_safari_browser.dart @@ -504,7 +504,8 @@ class ChromeSafariBrowser extends ChannelController { /// ///**Supported Platforms/Implementations**: ///- Android ([Official API - CustomTabsClient.getPackageName](https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsClient#getPackageName(android.content.Context,java.util.List%3Cjava.lang.String%3E,boolean)))) - static Future getPackageName({List? packages, bool ignoreDefault = false}) async { + static Future getPackageName( + {List? packages, bool ignoreDefault = false}) async { Map args = {}; args.putIfAbsent("packages", () => packages); args.putIfAbsent("ignoreDefault", () => ignoreDefault);