Native Storage Error, does not display the following screen

I’m trying to implement a login.

Which has 2 options to register one with your data that are in FB or the other put them manually.

In the first form you connect with fb and he brings your names and your mail, then sends you to the next window where you have to put your phone number

In the second option of resgitro you give where it says Register Now where it takes you to the same page that takes you from above only this time with empty fields.

My error arises when I give the second option and I get the following error and does not display the screen:

mfXFp

It tells me that it is empty Then my doubt is the following as I make it that when it arrives empty it shows the normal screen

Maybe it’s a mistake to be in this class:

ionViewCanEnter() {
        console.log('Ya llegue');
        let env = this;
        return this.nativeStorage.getItem('user')
            .then(function (data) {
                env.user = {
                    name: data.name,
                    email: data.email
                };
                console.log(env.user);
                env.userReady = true;
                return true;
            }, function (error) {
                console.log(error);
                return false;
            });
    }

And this is my html from my registration page where the 2 buttons arrive:

<ion-content padding class="body" align="center">
    <img src="assets/logito.png">
    <br>
    <br>

    <ion-list *ngIf="userReady">
        <ion-item>
            <ion-label>
                <ion-icon name="person"></ion-icon>
            </ion-label>
            <ion-input type="text" placeholder="Nombres" [(ngModel)]="user.name">
            </ion-input>
        </ion-item>
        <ion-item>
            <ion-label>
                <ion-icon name="mail"></ion-icon>
            </ion-label>
            <ion-input type="text" placeholder="Nombres" [(ngModel)]="user.email">
            </ion-input>
        </ion-item>
        <ion-item>
            <ion-label>
                <ion-icon name="call"></ion-icon>
            </ion-label>
            <ion-input clearInput type="number" placeholder="Teléfono">
            </ion-input>
        </ion-item>
    </ion-list>
    <button ion-button item-end round full icon-start color="dark" class="botones">
        <ion-icon name='checkmark-circle-outline'></ion-icon>
        registar
      </button>
</ion-content>

Please show how this data is put into storage. I suspect you’re trying to read from it before it has been written, as error code 2 is “item not found”. Note another couple of things: if you simply use arrow functions you don’t need any of that explicit env business, and you should be using ionic-storage instead of native storage so it will work in browsers as well.