Storage variable is not storing when webview is running


#1

I want to save some data when webview is running in ionic 3.

following are my code

var ref = window.open('http://xyz.com, '_self', 'location=no');           


  ref.addEventListener('loadstop', function(event: InAppBrowserEvent) 
  {       
        this.data="abc";
        this.storage.set('email1', data);
  }

Is their any other way to achieve this?
please help me