Through this Extension You can chek internet connection connection status.
[upl-image-preview url=https://community.casagbic.com/assets/files/2019-12-10/1575991391-203182-1.png]
On a button click yo
You have to Simple call this Function.

This is used when screen intilized then with if statement use this block.

This Event will run when Internet connection is On.

This Event will run when connection is off.
Watch tutorials on Youtube Chanel "Edube".