# Ionic \*\*BUG\*\* in provider

**URL:** <https://forum.ionicframework.com/t/ionic-bug-in-provider/127221>\
**Category:** ionic-v3\
**Created:** [April 7, 2018, 1:39pm UTC](https://forum.ionicframework.com/t/ionic-bug-in-provider/127221 "2018-04-07T13:39:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dweedlez](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@dweedlez](https://forum.ionicframework.com/u/dweedlez)\
**Post date:** [April 7, 2018, 1:39pm UTC](https://forum.ionicframework.com/t/ionic-bug-in-provider/127221/1 "2018-04-07T13:39:30Z")

</div>

I have an application that consumes an api, everything is fine when I run the ionic, it works 100%, it makes the requests in the api, everything is ok, but when I do the build in xcode and I open the app, it does not give me an error, but simply does not make any requirement in the API

**GIF in ionic serve -\>** [https://gyazo.com/33c7d310f077a83617d48e7ab214d69a](https://gyazo.com/33c7d310f077a83617d48e7ab214d69a)

**GIF in xcode project -\>** [https://gyazo.com/2fd3913a3e09c167c3378aeac2293b9a](https://gyazo.com/2fd3913a3e09c167c3378aeac2293b9a)

**method in my provider**

```auto
{ 
    return this.http.post(this.url + 'api/userLogin', {
        "email": account.email,
        "password": account.password
    }, {
        "headers": {
            'Accept':'application/json'
        }
    });
}

```

**Method in login.ts**

```auto
{
    console.log(this.conta);
    this.webservice.login(this.account).subscribe(data => {
        if (data.status == true) {
            this.webservice.updateTokenApp(data.token_app);
            this.navCtrl.setRoot(DashboardPage);
            this.presentLoadingDefault();
            console.log(data.token_app);
        } else {
            this.message="login ou senha invalido";
            this.presentToast();
        }
    }
}``
OBS: My app work 100% in ionic serve
```

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:41pm UTC](https://forum.ionicframework.com/t/ionic-bug-in-provider/127221/2 "2021-07-19T21:41:24Z")

</div>

Closed on July 19, 2021, 9:41pm UTC


