# \[Feedback\] Perspective web client on android webview

**URL:** <https://forum.inductiveautomation.com/t/feedback-perspective-web-client-on-android-webview/23346>\
**Category:** Ignition Early Access\
**Created:** [March 14, 2019, 4:21pm UTC](https://forum.inductiveautomation.com/t/feedback-perspective-web-client-on-android-webview/23346 "2019-03-14T16:21:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioG](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/antoniog/32/11149_2.png) [@AntonioG](https://forum.inductiveautomation.com/u/AntonioG)\
**Post date:** [March 14, 2019, 4:21pm UTC](https://forum.inductiveautomation.com/t/feedback-perspective-web-client-on-android-webview/23346/1 "2019-03-14T16:21:44Z")

</div>

We developed an android app in the past embedding a WebView to show Ignition 7.6.6 Mobile Version as a part of a Customer app.

We’d like to do the same thing using Ignition8 and Perspective, but the result is that our WebView always shows a blank screen without any error.  
Launching the same link on the same device but using Chrome is working fine.

Is it possible to still use the Android webView to display a Perspective Client or we necessarily have to run it using Chrome or the Ignition app?

---

<div class="post-metadata">

**Author:** ![mrojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrojas/32/6394_2.png) [@mrojas](https://forum.inductiveautomation.com/u/mrojas)\
**Post date:** [March 14, 2019, 5:26pm UTC](https://forum.inductiveautomation.com/t/feedback-perspective-web-client-on-android-webview/23346/2 "2019-03-14T17:26:49Z")

</div>

Perspective should work fine in a normal Android WebView, just make sure you enable javascript and dom storage on the WebView settings.

---

<div class="post-metadata">

**Author:** ![alessio.colombo](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@alessio.colombo](https://forum.inductiveautomation.com/u/alessio.colombo)\
**Post date:** [March 15, 2019, 8:08am UTC](https://forum.inductiveautomation.com/t/feedback-perspective-web-client-on-android-webview/23346/3 "2019-03-15T08:08:03Z")

</div>

Good morning, I'm a Colleague of Antonio, thanks for your reply. I developed the part of the App working with Ignition 7.6.6 mobile, but I'm not at all an Android expert developer.

I think I already enabled what you're suggesting for my WebView, I'm sharing you the code snippet.  
Just in case you need it, I can add that I have to use an Android 6.0.1, API 23 device.

> private void webViewTest(String url){
> 
> ```
> webView = findViewById(R.id.myWebView);
> 
> webView.getSettings().setLoadsImagesAutomatically(true);
> webView.getSettings().setDomStorageEnabled(true);
> webView.getSettings().setAppCacheEnabled(true);
> 
> String appCachePath = getApplicationContext().getCacheDir().getAbsolutePath();
> webView.getSettings().setAppCachePath(appCachePath);
> webView.getSettings().setAllowFileAccess(true);
> 
> webView.getSettings().setJavaScriptEnabled(true);
> 
> // Load the URLs inside the WebView, not in the external web browser
> webView.setWebViewClient(new WebViewClient());
> webView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
> 
> webView.loadUrl(url);
> 
> }
> 
> ```

These are the result using this code:

_Ignition 7.6.6 on Customer Application_  
 ![Ignition766MobileOnWebView](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/ea09cd404f01b7dd4e3362c202c637521da77ae2.png)

_Ignition 8 Perspective on Customer Application_  
 ![Ignition8PerspectiveOnWebView](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5e7719de8368f4788c45cbd2de0d43a346307c70.png)

_Same Ignition 8 Perspective link launched on the same device but into Chrome browser_  
 ![Ignition8PerspectiveOnChrome](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6ecd7ca40312cdcfe2962227486da72ae9fe6ee4.png)

---

<div class="post-metadata">

**Author:** ![alessio.colombo](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@alessio.colombo](https://forum.inductiveautomation.com/u/alessio.colombo)\
**Post date:** [March 15, 2019, 11:40am UTC](https://forum.inductiveautomation.com/t/feedback-perspective-web-client-on-android-webview/23346/4 "2019-03-15T11:40:54Z")

</div>

Update.

I installed Ignition Perspective app and this is the result:

![Ignition8PerspectiveOnPerspectiveApp](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3159eccd73b2ef72d47236815aa271478648305a.png)

It seems like Android 6.0.1 is not fully supported by Perspective App.  
Can anyone confirm my doubt?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 15, 2019, 12:41pm UTC](https://forum.inductiveautomation.com/t/feedback-perspective-web-client-on-android-webview/23346/5 "2019-03-15T12:41:41Z")

</div>

> [@alessio.colombo](#):
>
> It seems like Android 6.0.1

~~This is ancient, and so the version of Chromium used for the WebView is also ancient. It's likely not supported.~~

edit: mixed up versions, not _that_ old after all... 2015ish. The version of Chromium used by the WebView component might still be too old though.

---

<div class="post-metadata">

**Author:** ![mrojas](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mrojas/32/6394_2.png) [@mrojas](https://forum.inductiveautomation.com/u/mrojas)\
**Post date:** [March 15, 2019, 5:42pm UTC](https://forum.inductiveautomation.com/t/feedback-perspective-web-client-on-android-webview/23346/6 "2019-03-15T17:42:24Z")

</div>

That version should be supported. Can you double check that your System WebView is up to date? If you go to play store and search webview it will show up.

---

<div class="post-metadata">

**Author:** ![alessio.colombo](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@alessio.colombo](https://forum.inductiveautomation.com/u/alessio.colombo)\
**Post date:** [March 18, 2019, 7:21am UTC](https://forum.inductiveautomation.com/t/feedback-perspective-web-client-on-android-webview/23346/7 "2019-03-18T07:21:52Z")

</div>

Thanks for your replies, I’m using this on a wearable device and I don’t have the play store installed. I’ve contacted the supplier and he’s going to release an update for the O.S. to Android 8.1, hope this will help!

Thanks for your support.
