@capgo/inappbrowser 7.16.7 → 7.16.9

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.
package/README.md CHANGED
@@ -116,7 +116,7 @@ window.mobileApp.postMessage({ detail: { message: "myMessage" } });
116
116
  #### Receive event from inappbrowser in the main app
117
117
 
118
118
  ```js
119
- window.addEventListener("messageFromWebview", (event) => {
119
+ InAppBrowser.addEventListener("messageFromWebview", (event) => {
120
120
  console.log(event);
121
121
  });
122
122
  ```
@@ -1023,7 +1023,10 @@ public class InAppBrowserPlugin
1023
1023
  new CustomTabsCallback() {
1024
1024
  @Override
1025
1025
  public void onNavigationEvent(int navigationEvent, Bundle extras) {
1026
- if (navigationEvent == NAVIGATION_FINISHED) {
1026
+ // Only fire browserPageLoaded for Custom Tabs, not for WebView
1027
+ if (
1028
+ navigationEvent == NAVIGATION_FINISHED && webViewDialog == null
1029
+ ) {
1027
1030
  notifyListeners("browserPageLoaded", new JSObject());
1028
1031
  }
1029
1032
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/inappbrowser",
3
- "version": "7.16.7",
3
+ "version": "7.16.9",
4
4
  "description": "Capacitor plugin in app browser",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",