Back to All

BLOB Downloads Not Working

Hello, I have code that downloads a Blob object which is fetched from the server. I cannot seem to find a way to make it work on the emulator for either Android or iOs. Any help would be appreciated. I have a snippet of my code below:

const file = new Blob([blob.body], { type: 'application/pdf' });
const fileURL = window.URL.createObjectURL(file);
const a = document.createElement('a');
a.href = fileUrl; = "fake_filename.pdf"; = '_self';

A resulting file URL may look as follows:

I have checked my "Link Handling" settings, but the only way I can seem to make it work is to set EVERYTHING to external. Which obviously defeats the purpose of an app.