How to communicate between web view and app

App have few screens loaded via web-view which achieved through InAppBrowser.

  1. if is used “_blank” in create, camera option are not working inside web-view, only “_self” is allowing camera.
  2. iab events not working in “_self”

Kindly tell the possibilities for communication between web-view and app

Sample Code:

const browser = this.iab.create(`${URL}`, "_self", inAppBrowserOptions);
browser.on('loadstart').subscribe(
  (data) => {
    console.log("URL IS", data.url);
  },
  err => {
    console.log("InAppBrowser Loadstop Event Error: " + err);
  });