Put print(inspect(event)) in your event listener. This will spit out everything that the event return gives you.
Oh you need your device connected to the console to see that print() of course since we’re talking newWebView which means you need to be testing on device.
Oh I see. Its the native objects not letting anything above them issue. I don’t think you’ll find a workaround this. Can you use network.download to attempt to get the size of the web page before opening it in webView? If you use params it reports the size of object being downloaded so perhaps you can find a way to initiate the download, grab the size and then cancel the download and move on with the webView if size is above a threshold. Just an idea.
Put print(inspect(event)) in your event listener. This will spit out everything that the event return gives you.
Oh you need your device connected to the console to see that print() of course since we’re talking newWebView which means you need to be testing on device.
Oh I see. Its the native objects not letting anything above them issue. I don’t think you’ll find a workaround this. Can you use network.download to attempt to get the size of the web page before opening it in webView? If you use params it reports the size of object being downloaded so perhaps you can find a way to initiate the download, grab the size and then cancel the download and move on with the webView if size is above a threshold. Just an idea.