@@ -97,6 +97,7 @@ private void openUrl(MethodCall call, MethodChannel.Result result) {
9797 Map <String , String > headers = call .argument ("headers" );
9898 boolean scrollBar = call .argument ("scrollBar" );
9999 boolean allowFileURLs = call .argument ("allowFileURLs" );
100+ boolean geolocationEnabled = call .argument ("geolocationEnabled" );
100101
101102 if (webViewManager == null || webViewManager .closed == true ) {
102103 webViewManager = new WebviewManager (activity );
@@ -118,7 +119,8 @@ private void openUrl(MethodCall call, MethodChannel.Result result) {
118119 scrollBar ,
119120 supportMultipleWindows ,
120121 appCacheEnabled ,
121- allowFileURLs
122+ allowFileURLs ,
123+ geolocationEnabled
122124 );
123125 result .success (null );
124126 }
@@ -147,6 +149,7 @@ private void stopLoading(MethodCall call, MethodChannel.Result result) {
147149 if (webViewManager != null ) {
148150 webViewManager .stopLoading (call , result );
149151 }
152+ result .success (null );
150153 }
151154
152155 private void close (MethodCall call , MethodChannel .Result result ) {
@@ -163,6 +166,7 @@ private void back(MethodCall call, MethodChannel.Result result) {
163166 if (webViewManager != null ) {
164167 webViewManager .back (call , result );
165168 }
169+ result .success (null );
166170 }
167171
168172 /**
@@ -172,6 +176,7 @@ private void forward(MethodCall call, MethodChannel.Result result) {
172176 if (webViewManager != null ) {
173177 webViewManager .forward (call , result );
174178 }
179+ result .success (null );
175180 }
176181
177182 /**
@@ -181,13 +186,15 @@ private void reload(MethodCall call, MethodChannel.Result result) {
181186 if (webViewManager != null ) {
182187 webViewManager .reload (call , result );
183188 }
189+ result .success (null );
184190 }
185191
186192 private void reloadUrl (MethodCall call , MethodChannel .Result result ) {
187193 if (webViewManager != null ) {
188194 String url = call .argument ("url" );
189195 webViewManager .reloadUrl (url );
190196 }
197+ result .success (null );
191198 }
192199
193200 private void eval (MethodCall call , final MethodChannel .Result result ) {
@@ -208,12 +215,14 @@ private void hide(MethodCall call, final MethodChannel.Result result) {
208215 if (webViewManager != null ) {
209216 webViewManager .hide (call , result );
210217 }
218+ result .success (null );
211219 }
212220
213221 private void show (MethodCall call , final MethodChannel .Result result ) {
214222 if (webViewManager != null ) {
215223 webViewManager .show (call , result );
216224 }
225+ result .success (null );
217226 }
218227
219228 private void cleanCookies (MethodCall call , final MethodChannel .Result result ) {
0 commit comments