Problem Checking Network Connection in Ionic 4

I am stuck. I tried various ways on POPPING A MESSAGE OUT when the user can’t get any access to the internet but none of them works for me.

Tried using the network plugin, fail and also navigator.Online, fail too.

Hence, I am humbly asking if anyone is kind enough and able to guide me on how to achieve it?

The main issue is I want to disable my iframe and pop a message when there is no internet access. very simple but yet I am struggling to achieve it.

Thanks in advance for any kind souls out there. Any advice and suggestion is great.

What do you mean if you say the Plugin or the Navigator fail?