# Ionic 4 + angular 6 starters fail to run on real device

**URL:** <https://forum.ionicframework.com/t/ionic-4-angular-6-starters-fail-to-run-on-real-device/134847>\
**Category:** ionic-v3\
**Created:** [July 10, 2018, 6:07am UTC](https://forum.ionicframework.com/t/ionic-4-angular-6-starters-fail-to-run-on-real-device/134847 "2018-07-10T06:07:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesYS](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@JamesYS](https://forum.ionicframework.com/u/JamesYS)\
**Post date:** [July 10, 2018, 6:07am UTC](https://forum.ionicframework.com/t/ionic-4-angular-6-starters-fail-to-run-on-real-device/134847/1 "2018-07-10T06:07:47Z")

</div>

Hello, I’m trying to build a project using ionic 4 + angular 6 bu I can’t get it working so I’ve started from ‘the basics’ and even the ionic starters fail to run on real android device.

I’ve instaled the latest ionic cli and run

```auto
ionic start test tabs --type=angular
cd test
ionic serve

```

Ionic serve works (at least with the starter), but when when I try to run it on real device `ionic cordova run android` i only get a blank screen after the loading splash, and with chrome dev tools It seems that it fails to load every file (runtime.js, polyfill.js, cordova.js…)

My current ionic info

```auto
Ionic:
   ionic (Ionic CLI) : 4.0.0-rc.9 (/usr/lib/node_modules/ionic)
   Ionic Framework : @ionic/angular 4.0.0-alpha.7
   @angular-devkit/core : 0.7.0-rc.0
   @angular-devkit/schematics : 0.7.0-rc.0
   @angular/cli : 6.0.8
   @ionic/ng-toolkit : 1.0.0-rc.9
   @ionic/schematics-angular : 1.0.0-rc.9

Cordova:
   cordova (Cordova CLI) : 7.0.1
   Cordova Platforms : android 6.2.3

System:
   Android SDK Tools : 26.1.1
   NodeJS : v8.11.3 (/usr/bin/node)
   npm : 5.6.0
   OS : Linux 4.4

```

I don’t know what else to check, tried remove & add platform, delete node & plugins folders and install again, update @ionic-native packages to beta.13 (current starters use beta.12)

Any ideas? Any updated guides for ionic 4?

Thanks

---

<div class="post-metadata">

**Author:** ![ChrisGriiffith](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chrisgriiffith/32/66576_2.png) [@ChrisGriiffith](https://forum.ionicframework.com/u/ChrisGriiffith)\
**Post date:** [July 11, 2018, 4:32pm UTC](https://forum.ionicframework.com/t/ionic-4-angular-6-starters-fail-to-run-on-real-device/134847/2 "2018-07-11T16:32:09Z")

</div>

I believe that ionic-webkit needs to be updated. I encountered an issue with the iOS sim that sounds like the same issue you are having.

---

<div class="post-metadata">

**Author:** ![JamesYS](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@JamesYS](https://forum.ionicframework.com/u/JamesYS)\
**Post date:** [July 12, 2018, 2:34pm UTC](https://forum.ionicframework.com/t/ionic-4-angular-6-starters-fail-to-run-on-real-device/134847/3 "2018-07-12T14:34:51Z")

</div>

Thanks for your reply, I assume you mean [wkwebview](https://ionicframework.com/docs/wkwebview/) or the cordova-plugin-ionic-webview (which i’ve also updated to latest 1.2.1 version) but no luck. Same problem and blank screen on android device.

I know Ionic 4 is still a work in progress, but it’s very frustrating when you can’t get even a ‘hello world’, the starters [are receiving updates](https://github.com/ionic-team/starters/commits/master) but I still get same problem ☹

I thought that maybe I’m missing some global package or have some misconfiguration, so I’ve also tried with beevelop/ionic:rc docker image but I’ve got same result.

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [July 12, 2018, 3:19pm UTC](https://forum.ionicframework.com/t/ionic-4-angular-6-starters-fail-to-run-on-real-device/134847/4 "2018-07-12T15:19:17Z")

</div>

For v4 on iOS, cordova-plugin-ionic-webview beta version is a must I think. I could confirm I was able to run an Ionic v4 on iOS with it (I will publish a demo repo later today or tomorrow)

Android I didn’t tried unfortunately

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [July 13, 2018, 5:39am UTC](https://forum.ionicframework.com/t/ionic-4-angular-6-starters-fail-to-run-on-real-device/134847/5 "2018-07-13T05:39:22Z")

</div>

Here you go, this Ionic v4 demo should work on iOS devices too according my tests: [A Ionic demo app from v3 to v4](https://forum.ionicframework.com/t/a-ionic-demo-app-from-v3-to-v4/135187/1)

---

<div class="post-metadata">

**Author:** ![JamesYS](https://avatars.discourse-cdn.com/v4/letter/j/919ad9/32.png) [@JamesYS](https://forum.ionicframework.com/u/JamesYS)\
**Post date:** [July 13, 2018, 6:35am UTC](https://forum.ionicframework.com/t/ionic-4-angular-6-starters-fail-to-run-on-real-device/134847/6 "2018-07-13T06:35:07Z")

</div>

Thanks @reedrichards

I’ve tried updating cordova-plugin-ionic-webview in the starter project to 2.0.0-beta.2 and still get the blank page after the loading splash screen. (at least on android device, haven’t tested on ios yet)

But now I’ve tried your demo project and that one is working, so I’ll check for differences in package versions and see if I can find who’s the ‘guilty’ 😛

Also (in case it can help someone else) I’ve just found the [updated ionic docs](https://beta.ionicframework.com) which I haven’t seen before, so I’ll take a look in case I’m missing some piece.

---

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [July 13, 2018, 6:47am UTC](https://forum.ionicframework.com/t/ionic-4-angular-6-starters-fail-to-run-on-real-device/134847/7 "2018-07-13T06:47:34Z")

</div>

Cool to hear my demo is working 😉

I’m curious about the “why” your app doesn’t work on devices, I hope that by comparing you will find the problem, looking forward to hear about that

Sweet for the doc, didn’t knew it neither. I gonna add it to my README, cool 👍

---

<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:30pm UTC](https://forum.ionicframework.com/t/ionic-4-angular-6-starters-fail-to-run-on-real-device/134847/8 "2021-07-19T21:30:12Z")

</div>

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


