I am having similar issues bit in Ionic 1, I think we are dealing with a permissions issues with Android 6.0 and newest iOS where it doesn’t request file read/write permissions. Still investigating myself, but I know on Android you can get around this by targeting a lower sdk version with the following in your config.xml file:
also my .html.
there is a simple function to call screenshot and also change a var on the html.
<ion-header>
<ion-navbar>
<ion-title>Home</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<h2>Welcome to Ionic!</h2>
<p>
This starter project comes with simple tabs-based layout for apps
that are going to primarily use a Tabbed UI.
</p>
<p>
Take a look at the <code>src/pages/</code> directory to add or change tabs,
update any existing page or create new pages.
</p>
<p>
the bridge is {{bridgeStatus}}
</p>
<button (click)="destroy()">Destroy</button>
</ion-content>
Don’t ever type the word ‘function’ inside of the body of one. Always use arrow functions or lambdas. In this case, destroy() should just be an ordinary object method, and it doesn’t make sense for it to be returning anything.