In one of our older ‘Save Data’ examples, we had previously used the following and it was working fine without any issues in cordova UIWebview.
var filename