I can't download files from the apk

This part of my code is to install files (in this case a pdf)

  public DescargarPDF(): void {
    if (this.DataAcc.AccVer == "Cosechadora Arriba con Motor John Deere") {
      this.PDFRoot = "/assets/manuales/SeinmexCosechaArriba.pdf"
      .subscribe(response => {
        /*let fileName = response.headers.get("ManualCosechadoraArribaJohnDeere.pdf")*/

        let blob: Blob = response.body as Blob;
        let a = document.createElement('a');
        a.download = "ManualCosechadoraArribaJohnDeere.pdf";
        a.href = window.URL.createObjectURL(blob);

I created a service to connect to the pdf

import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

  providedIn: 'root'
export class DescargarService {

    private Http: HttpClient) { }

  public DescargarManual(Maquina:string) {
    return this.Http.get(Maquina,
      { observe: 'response', responseType: 'blob' })


On the website the code works but in the apk it doesn’t download anything

It’s hard to understand what you are saying with all those run-on sentences. How do I ask a good question? - Help Center - Stack Overflow