Browser.open dont open in android


#1

Hi, i am a problem i am using Broser.open to open a pdf file, in the navegador is ok, but in my device dont open the pdf file.

this is my code:

var my_lzma = require(“lzma”);
const databuffer = new Buffer(base647z, “base64”);

        const decompressed = my_lzma.decompress(databuffer);
        var data2 = new Buffer(decompressed).toString("base64");

         var binary = atob(data2.replace(/\s/g, ''));
         var len = binary.length;
         var buffer = new ArrayBuffer(len);
         var view = new Uint8Array(buffer);
         for (var i = 0; i < len; i++) {
             view[i] = binary.charCodeAt(i);
         }
        const url = reader.readAsDataURL(new Blob([view],{type: 'application/pdf'}));
        Broser.open(url);