Save form data in mobile app
<p>I create an app by backbone js that when is submitted, form data is stored in a txt file. it works properly in windows.
here is my code:</p>

<pre><code>var pom = document.createElement('a');
pom.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(mytext));
pom.setAttribute('download', filename);
pom.style.display = 'none';
document.body.appendChild(pom);
pom.click();
document.body.removeChild(pom);
</code></pre>

<p>then I created an APK by Cordova. When I install the APK on my mobile and submit the form, the txt file don't save in my mobile.
What is the problem ?
is there any other way to save form data in my app on mobile? </p>