InAppBrowser pending after some time

Hello, I have been trying to use the inAppBrowser plugin to send post messages using
webkit.messageHandlers.cordova_iab.postMessage
and its working fine for android devices version <= 8 but on android 9, after a certain duration all requests onwards would remain pending indefinitely. Any suggestions?

System:
Ionic CLI : 5.4.9
Ionic Framework : @ionic/angular 4.2.0
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)