Detect Connection Error Using Native.showwebpopup

Hi,

 

how could I detect a connection error using native.showWebPopup? I know that exist event.errorCode and event.errorMessage but they always return me nil if there is or not the connection…so how could I detect connection errors?

 

Thank you,

 

Andrea