# Ionic 6 app dont work on android v8.1 but works on android v6 devices

**URL:** <https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065>\
**Category:** Ionic Angular\
**Created:** [December 10, 2020, 4:35pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065 "2020-12-10T16:35:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 10, 2020, 4:35pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/1 "2020-12-10T16:35:32Z")

</div>

Ionic 6 app dont work(show only white-screen) on android v8.1 but works on lesser version android v.6 devices

Ionic 6, Angular 10, Node 12

 ![oikoi](https://global.discourse-cdn.com/ionicframework/original/3X/3/0/304606da83e271325a437a86687faaf54a858651.png)

---

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 10, 2020, 4:51pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/2 "2020-12-10T16:51:33Z")

</div>

i just test on a new android v9 its working but not on android v8,  
but still works on android early version 6 too.

---

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 11, 2020, 3:55am UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/3 "2020-12-11T03:55:38Z")

</div>

can some1 help me with this plz

---

<div class="post-metadata">

**Author:** ![ldebeasi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ldebeasi/32/147501_2.png) [@ldebeasi](https://forum.ionicframework.com/u/ldebeasi)\
**Post date:** [December 11, 2020, 2:45pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/4 "2020-12-11T14:45:11Z")

</div>

What is the version of the webview on your phone? You can find this by following these steps:

1. Inspect the app running on your phone in Chrome Dev Tools (`chrome://inspect`)
2. Log `window.navigator.userAgent` to the console and paste the result here.

---

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 11, 2020, 3:25pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/5 "2020-12-11T15:25:26Z")

</div>

chrome://inspect/#devices refused to work but its chrome chrome 70.0.3538.110  
i found this info developer options of my device \> webview implementation

---

<div class="post-metadata">

**Author:** ![ldebeasi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ldebeasi/32/147501_2.png) [@ldebeasi](https://forum.ionicframework.com/u/ldebeasi)\
**Post date:** [December 11, 2020, 3:26pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/6 "2020-12-11T15:26:49Z")

</div>

Can you try updating the WebView on the Google Play Store? Without knowing if there are any errors logged to the console in your app, it is hard to say what the issue could be.

---

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 11, 2020, 3:27pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/7 "2020-12-11T15:27:41Z")

</div>

let me try that get back u  
thx

---

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 11, 2020, 4:09pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/8 "2020-12-11T16:09:18Z")

</div>

i updated webview but cant seem to make chrome://inspect/#devices connect to my device.

am really hardworker if u showed me any area u suspect that this issue my come from i may trackit down and find a way to solve it

![image](https://global.discourse-cdn.com/ionicframework/original/3X/4/1/41219b2b0e1e1e52477a45dfe4f78600c4ee1e30.png)

---

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 11, 2020, 5:29pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/9 "2020-12-11T17:29:08Z")

</div>

i updated webview but cant seem to make chrome://inspect/#devices connect to my device.

am really hardworker if u showed me any area u suspect that this issue my come from i may trackit down and find a way to solve it

![image](https://global.discourse-cdn.com/ionicframework/original/3X/4/1/41219b2b0e1e1e52477a45dfe4f78600c4ee1e30.png)

---

<div class="post-metadata">

**Author:** ![ldebeasi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ldebeasi/32/147501_2.png) [@ldebeasi](https://forum.ionicframework.com/u/ldebeasi)\
**Post date:** [December 11, 2020, 5:48pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/10 "2020-12-11T17:48:24Z")

</div>

If you have Android Studio installed, you likely also have `adb` installed. You can use that tool to see the list of devices connected to your computer.

The following command can be run in a shell/terminal and will tell you which devices are connected to your computer:

```auto
adb devices -l

```

If you do not see your device listed, then you will need to do some debugging to figure out why it is not showing up. Here are the steps I usually go through when my device is not being detected:

1. Ensure “USB Debugging” is enabled on your device. You can follow these steps to enable it:

2. Try connecting your phone with another cable. The cable you are using now may be defective.

3. Try restarting ADB: `adb kill-server` and then `adb start-server`.

Here is more information on how to use ADB: [https://developer.android.com/studio/command-line/adb](https://developer.android.com/studio/command-line/adb)

---

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 11, 2020, 7:22pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/11 "2020-12-11T19:22:18Z")

</div>

done everything here but my device(android v8.1) wont show in `adb devices but others show

---

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 11, 2020, 7:23pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/12 "2020-12-11T19:23:13Z")

</div>

like my app works on others but not this android v8.1 device  
and its what my client uses

---

<div class="post-metadata">

**Author:** ![ldebeasi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ldebeasi/32/147501_2.png) [@ldebeasi](https://forum.ionicframework.com/u/ldebeasi)\
**Post date:** [December 11, 2020, 7:32pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/13 "2020-12-11T19:32:51Z")

</div>

It sounds like you will need to do some investigation as to why the device is not showing up. Without being able to debug the device myself, I am not sure what the issue would be. This StackOverflow post is probably a good place to start: [https://stackoverflow.com/questions/21170392/android-device-does-not-show-up-in-adb-list](https://stackoverflow.com/questions/21170392/android-device-does-not-show-up-in-adb-list)

---

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 11, 2020, 8:18pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/14 "2020-12-11T20:18:19Z")

</div>

all the options they suggest as working solution they are indeed but not on these device

---

<div class="post-metadata">

**Author:** ![ldebeasi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ldebeasi/32/147501_2.png) [@ldebeasi](https://forum.ionicframework.com/u/ldebeasi)\
**Post date:** [December 11, 2020, 8:37pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/15 "2020-12-11T20:37:16Z")

</div>

You likely will need to do some more debugging on your end. Without being able to debug the device myself or see any errors, I am not sure what other advice I can give that would be helpful.

---

<div class="post-metadata">

**Author:** ![Daveshirman](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@Daveshirman](https://forum.ionicframework.com/u/Daveshirman)\
**Post date:** [December 12, 2020, 2:06am UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/16 "2020-12-12T02:06:10Z")

</div>

Here’s what I do when this happens. It’s dirty, but it works every time:

1. I put alerts in after every line of my app startup in app.component.ts.

E.g. alert(1) … alert(2)

1. I run my app on the device that doesn’t work and watch the alerts until they stop.

2. That then tells me which part is breaking the initial rendering of the app.

Often it’s a plugin missing or a race condition, perhaps from a previous install before you changed some code and introduced a bug or whatever.

Good luck and let us know.

---

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 19, 2020, 2:07am UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/17 "2020-12-19T02:07:26Z")

</div>

hey i finally found the device which allows me to remote debug and this the console out error

ReferenceError: globalThis is not defined  
at Module. (vendor-es5.js:158248)  
at Module.spgP (vendor-es5.js:158400)  
at **webpack\_require** (runtime-es5.js:85)  
at Module.ZAI4 (main-es5.js:295)  
at **webpack\_require** (runtime-es5.js:85)  
at Module.zUnb (main-es5.js:647)  
at **webpack\_require** (runtime-es5.js:85)  
at Object.\_ (main-es5.js:19)  
at **webpack\_require** (runtime-es5.js:85)  
at checkDeferredModules (runtime-es5.js:46)  
capacitor.handleError @ capacitor-runtime.js:358

---

<div class="post-metadata">

**Author:** ![aminem2080](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aminem2080/32/135307_2.png) [@aminem2080](https://forum.ionicframework.com/u/aminem2080)\
**Post date:** [December 19, 2020, 11:25am UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/18 "2020-12-19T11:25:31Z")

</div>

> [@ReferenceError: globalThis is not defined](https://forum.ionicframework.com/t/referenceerror-globalthis-is-not-defined/201520/1):
>
> now i found a way to remote debugg it in chrome devtools, this is the error output:
> 
> ```auto
> ReferenceError: globalThis is not defined
> at Module.<anonymous> (vendor-es5.js:158248)
> at Module.spgP (vendor-es5.js:158400)
> at __webpack_require__ (runtime-es5.js:85)
> at Module.ZAI4 (main-es5.js:295)
> at __webpack_require__ (runtime-es5.js:85)
> at Module.zUnb (main-es5.js:647)
> at __webpack_require__ (runtime-es5.js:85)
> at Object._ (main-es5.js:19)
> at __webpack_require__ (runtime-es5.js:85)
> at checkDeferredModules (runtime-es5.js:46)
> capacitor.handleError @ capacitor-runtime.js:358
> capacitor.handleWindowError @ capacitor-runtime.js:378
> 
> ```
> 
> if i follow in those vendor-es5.js files the error that they is un undefined  
> globalThis. on these line of angular fire
> 
> `globalThis.ɵAngularfireInstanceCache || (globalThis.ɵAngularfireInstanceCache = new Map());`
> 
> help me know what to

---

<div class="post-metadata">

**Author:** ![ldebeasi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ldebeasi/32/147501_2.png) [@ldebeasi](https://forum.ionicframework.com/u/ldebeasi)\
**Post date:** [December 28, 2020, 9:52pm UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/19 "2020-12-28T21:52:53Z")

</div>

The error is being thrown from Angular Fire, not Ionic Framework. The webview version installed on your device likely does not have support for `globalThis`. See [https://github.com/angular/angularfire#polyfills](https://github.com/angular/angularfire#polyfills) for a polyfill you can use.

---

<div class="post-metadata">

**Author:** ![petrosky18](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@petrosky18](https://forum.ionicframework.com/u/petrosky18)\
**Post date:** [January 21, 2021, 6:07am UTC](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065/20 "2021-01-21T06:07:21Z")

</div>

I spent two days researching, and this was the solution for me, put this script in the index.html of your application

![code](https://global.discourse-cdn.com/ionicframework/original/3X/c/3/c32a38e689ed1967a5e2aa3cd6601c18e91d8f79.png)

[Next page](https://forum.ionicframework.com/t/ionic-6-app-dont-work-on-android-v8-1-but-works-on-android-v6-devices/201065.md?page=2)
