# Problem with ionic

**URL:** <https://forum.ionicframework.com/t/problem-with-ionic/22510>\
**Category:** ionic-v1\
**Created:** [May 6, 2015, 5:04pm UTC](https://forum.ionicframework.com/t/problem-with-ionic/22510 "2015-05-06T17:04:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![krzkz94](https://avatars.discourse-cdn.com/v4/letter/k/53a042/32.png) [@krzkz94](https://forum.ionicframework.com/u/krzkz94)\
**Post date:** [May 6, 2015, 5:04pm UTC](https://forum.ionicframework.com/t/problem-with-ionic/22510/1 "2015-05-06T17:04:51Z")

</div>

Hello everyone, Chris here.

I’m having a huge problem with cordova/ionic.

I have an app that connects to a server and registers the device, plus the push id. Yesterday it was working perfectly, today, when i came in, it doesen’t work anymore.

The problems are:

It crashes, says it stopped working  
but before  
Livereload not working, network error (access origin = \*)

Requests to a non local server end up with a 404

The only thing that changed is:  
ionic platform rm android  
ionic platform add android, it added with target sdk 22 and it started building with gradle instead of ant like yesterday (it was 21).

Any suggestions?

- Chris.

---

<div class="post-metadata">

**Author:** ![mikeon](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mikeon](https://forum.ionicframework.com/u/mikeon)\
**Post date:** [May 6, 2015, 5:08pm UTC](https://forum.ionicframework.com/t/problem-with-ionic/22510/2 "2015-05-06T17:08:18Z")

</div>

Can you check in app.js if cordova is added?

`
```
if(window.cordova && window.cordova.plugins.Keyboard) {
  cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);    
  console.log('yeap');
}  
else {  
console.log("nopes");
}

```
`

---

<div class="post-metadata">

**Author:** ![krzkz94](https://avatars.discourse-cdn.com/v4/letter/k/53a042/32.png) [@krzkz94](https://forum.ionicframework.com/u/krzkz94)\
**Post date:** [May 6, 2015, 5:14pm UTC](https://forum.ionicframework.com/t/problem-with-ionic/22510/3 "2015-05-06T17:14:31Z")

</div>

Cannot view console logs too for some reason.

Also starting a blank app gives the same problems, but i’ll check and report.

---

<div class="post-metadata">

**Author:** ![krzkz94](https://avatars.discourse-cdn.com/v4/letter/k/53a042/32.png) [@krzkz94](https://forum.ionicframework.com/u/krzkz94)\
**Post date:** [May 6, 2015, 5:17pm UTC](https://forum.ionicframework.com/t/problem-with-ionic/22510/4 "2015-05-06T17:17:49Z")

</div>

P.S, tried with alerts, it logged yeap.

If i try with -cls flags (logs, livereload, serverlogs) it says Network error and shows me the IP.

‘There was a network error ([http://ip](http://ip))’

---

<div class="post-metadata">

**Author:** ![mikeon](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mikeon](https://forum.ionicframework.com/u/mikeon)\
**Post date:** [May 6, 2015, 5:33pm UTC](https://forum.ionicframework.com/t/problem-with-ionic/22510/5 "2015-05-06T17:33:07Z")

</div>

Cordova Whitelist Plugin?

> **[Application Error : There was a network Error](http://forum.ionicframework.com/t/application-error-there-was-a-network-error/21999)**
>
> ionic info Your system information: OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Node Version: v0.12.2 Cordova CLI: 5.0.0 Ionic Version: 1.0.0-rc.5 Ionic CLI Version: 1.3.21 vagrant@ionic-android:~/ionic\_apps/testApp$ ionic run...

---

<div class="post-metadata">

**Author:** ![krzkz94](https://avatars.discourse-cdn.com/v4/letter/k/53a042/32.png) [@krzkz94](https://forum.ionicframework.com/u/krzkz94)\
**Post date:** [May 6, 2015, 5:48pm UTC](https://forum.ionicframework.com/t/problem-with-ionic/22510/6 "2015-05-06T17:48:47Z")

</div>

Well, gave it a shot and it worked. Yesterday i didn’t have to do that, idk why, but K, i think this should come preinstalled with cordova.

Thank you,  
Krzysztof.
