InAppBrowser message event not firing

I’m using inappbrowser to open a thirdparty payment gateway, after successful transaction I get a response form the call, but the message event of inappbrowser in not firing upon successful response. Need help.

Team i am facing same issue any help here.This looks like a bug or never implemented in ionic inapp for IOS platform.

I am having a similar issue to @jazzymb7.

I am working with the InAppBrowser (https://ionicframework.com/docs/native/in-app-browser) and I am having some trouble receiving message events from an external URL. Is this feature only available with Ionic Enterprise?

I have tried listening for all events types listed in https://ionicframework.com/docs/enterprise/inappbrowser#inappbrowsereventtype, but only the loadstart, loadstop and exit events are fired.

See Below:

import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
...
constructor(private iab: InAppBrowser) { }
this.browser = this.iab.create(
    '*myURL*',
    '_blank',
    'hideurlbar=yes,location=no,fullscreen=yes'
);
this.browser.on('loadstart').subscribe(
    (event) => {
      alert('event:loadstart');
    }
);
this.browser.on('loadstop').subscribe(
    (event) => {
      alert('event:loadstop');
    }
);
this.browser.on('loaderror').subscribe(
    (event) => {
      alert('event:loaderror');
    }
);
this.browser.on('exit').subscribe(
    (event) => {
      alert('event:exit');
    }
  );
this.browser.on('beforeload').subscribe(
    (event) => {
      alert('event: beforeload');
    }
);
this.browser.on('message').subscribe(
    (event) => {
      alert('event: message');
    }
);
...

Note : My external URL uses https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage to fire the message event.

There is an issue on the repo for this but its new and this thread seems older. Did you manage to resolve this? I tried adding background mode to my app but that does not resolve it. It must be a new ios version issue.