Ionic can not update Firebase in APK

I make an application using Ionic and Firebase. The database in Firebase successfully run when run in ionic lab or ionic serve. See the picture, prove it when the database changed.

But, when i run in Emulator (Nox that i used) or My device, the database Can’t run as in ionic serve. See the picture, prove the database not changed.

Here my TypeScript

import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';

import { Item } from '../../models/lamp/lamp.model';
import { LampServices } from '../../services/lamp/';
import { Observable } from 'rxjs/Observable';

  selector: 'page-turn-lamp',
  templateUrl: 'turn-lamp.html',
export class TurnLampPage {
  lamp$: Observable<Item[]>;
  item: Item;

    public navCtrl: NavController, 
    public navParams: NavParams,
    private lampS: LampServices
  ) {
    this.lamp$ = this.lampS
      changes => {
        return => ({
          key: c.payload.key, ...c.payload.val()

  turnLamp(item: Item){

Here the Service of getLamp() and turnLamp()

import { Injectable } from "@angular/core";

import { AngularFireDatabase } from "angularfire2/database";
import { Item } from "../../models/lamp/lamp.model";

export class LampServices{
    private lampRef = this.db.list<Item>('lamp');

    constructor(private db: AngularFireDatabase){}

        return this.lampRef;

    addLamp(item: Item){
        return this.lampRef.push(item);

    turnLamp(item: Item){
        return this.lampRef.update(item.key, item);

Here how i call the function in HTML

<ion-item *ngFor="let item of lamp$ | async">
  <ion-toggle [(ngModel)]="item.condition" (click)="turnLamp(item)"></ion-toggle>

Is it a bug? or is there any error on my code?

Thanks before.

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Chrome dev tools: Look at the console and network tabs for errors.

Ah yeah, there is an error when i click the toggle

vendor.js:138092 Ignored attempt to cancel a touchstart event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.

Do you know this problem?