LocalNotifications.update not working


#1

I’m trying to update a localnotification after showing it, but it’s not updating the notification

fileTransfer.upload(this.img, 'http://192.168.43.76/famgoo_rest/', options1)
			.then((data) => {
			     // success
			     console.log(data);
			     
			 }, (err) => {
			     // error
			     console.log(JSON.stringify(err));
			     
			 });

			this.localNotifications.schedule({
				id: 1,
				text: 'Subiendo imagen',
				progressBar: { value: this.porcentaje_carga }
			});

		
			
			fileTransfer.onProgress((listener) => {

				let porcentaje = (listener.loaded / listener.total) * 100;
				this.porcentaje_carga = porcentaje.toFixed(0);
				console.log(this.porcentaje_carga);
                               this.localNotifications.update({
					id: 1,
					progressBar: { value: this.porcentaje_carga }
				});

			
			});

I had defined “this.porcentaje_carga”