# normalizeURL depricated, cannot get WebView convertFileSrc to work

**URL:** <https://forum.ionicframework.com/t/normalizeurl-depricated-cannot-get-webview-convertfilesrc-to-work/136329>\
**Category:** Ionic Native\
**Created:** [July 26, 2018, 9:53am UTC](https://forum.ionicframework.com/t/normalizeurl-depricated-cannot-get-webview-convertfilesrc-to-work/136329 "2018-07-26T09:53:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blunk](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/blunk/32/116521_2.png) [@blunk](https://forum.ionicframework.com/u/blunk)\
**Post date:** [July 26, 2018, 9:53am UTC](https://forum.ionicframework.com/t/normalizeurl-depricated-cannot-get-webview-convertfilesrc-to-work/136329/1 "2018-07-26T09:53:05Z")

</div>

Hi there, I opened my app today and it crashed, saying normalizeURL is depricated use convertFileSrc instead.

So i tried to implement the WebView new method.

> **[Ionic Docs - WebView](https://beta.ionicframework.com/docs/native/ionic-webview/)**
>
> Ionic is the app platform for web developers. Build amazing mobile, web, and desktop apps all with one shared code base and open web standards

Its installed but gives this error - Cannot find the name WebView.  
If anyone can assist i would be greatfull because our app relies on this functionality and it due for launch soon.

I even tried to manually change the url from ‘file:///’ to ‘/’ and from ‘file:///’ tp ‘[http://localhost:8080](http://localhost:8080)’ with no luck

Thanks

---

<div class="post-metadata">

**Author:** ![blunk](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/blunk/32/116521_2.png) [@blunk](https://forum.ionicframework.com/u/blunk)\
**Post date:** [July 26, 2018, 2:47pm UTC](https://forum.ionicframework.com/t/normalizeurl-depricated-cannot-get-webview-convertfilesrc-to-work/136329/2 "2018-07-26T14:47:58Z")

</div>

Figured it out, with the new WebView v2 the normalizeURL is depricated, just had to roll back for this current app.

Thanks

---

<div class="post-metadata">

**Author:** ![lucbonnin](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/lucbonnin/32/94806_2.png) [@lucbonnin](https://forum.ionicframework.com/u/lucbonnin)\
**Post date:** [February 1, 2019, 1:49pm UTC](https://forum.ionicframework.com/t/normalizeurl-depricated-cannot-get-webview-convertfilesrc-to-work/136329/3 "2019-02-01T13:49:42Z")

</div>

You could also upgrade to v3 and use this small hack for the compilator regarding window.\*

```auto
let win: any = window; // hack compilator
let safeURL = win.Ionic.WebView.convertFileSrc('file:///myFile/....');

```

---

<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:28pm UTC](https://forum.ionicframework.com/t/normalizeurl-depricated-cannot-get-webview-convertfilesrc-to-work/136329/4 "2021-07-19T21:28:51Z")

</div>

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


