@capgo/inappbrowser 7.20.5 → 7.20.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1296,22 +1296,6 @@ public class WebViewDialog extends Dialog {
1296
1296
  }
1297
1297
  };
1298
1298
  }
1299
- // Also provide direct window methods for convenience
1300
- window.postMessage = function(data) {
1301
- try {
1302
- var message = typeof data === 'string' ? data : JSON.stringify(data);
1303
- window.AndroidInterface.postMessage(message);
1304
- } catch(e) {
1305
- console.error('Error in postMessage:', e);
1306
- }
1307
- };
1308
- window.close = function() {
1309
- try {
1310
- window.AndroidInterface.close();
1311
- } catch(e) {
1312
- console.error('Error in close:', e);
1313
- }
1314
- };
1315
1299
  }
1316
1300
  // Override window.print function to use our PrintInterface
1317
1301
  if (window.PrintInterface) {
@@ -213,7 +213,7 @@ open class WKWebViewController: UIViewController, WKScriptMessageHandler {
213
213
 
214
214
  // Calculate total height - status bar + navigation bar
215
215
  let navBarHeight = navigationController?.navigationBar.frame.height ?? 44
216
- let totalHeight = statusBarHeight + navBarHeight
216
+ let totalHeight = (navigationController?.view.safeAreaInsets.top ?? CGFloat(0)) + navBarHeight
217
217
 
218
218
  // Position from top of screen to bottom of navigation bar
219
219
  NSLayoutConstraint.activate([
@@ -230,6 +230,7 @@ open class WKWebViewController: UIViewController, WKScriptMessageHandler {
230
230
  navigationController?.navigationBar.setBackgroundImage(UIImage(), for: .default)
231
231
  navigationController?.navigationBar.shadowImage = UIImage()
232
232
  navigationController?.navigationBar.isTranslucent = true
233
+ navigationController?.navigationBar.isTranslucent = true
233
234
  }
234
235
  }
235
236
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/inappbrowser",
3
- "version": "7.20.5",
3
+ "version": "7.20.7",
4
4
  "description": "Capacitor plugin in app browser",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",