# Rocketchat loading error using iframe in ios webview

**URL:** <https://forums.rocket.chat/t/rocketchat-loading-error-using-iframe-in-ios-webview/19440>\
**Category:** Development\
**Created:** [February 11, 2024, 10:29am UTC](https://forums.rocket.chat/t/rocketchat-loading-error-using-iframe-in-ios-webview/19440 "2024-02-11T10:29:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yourday](https://avatars.discourse-cdn.com/v4/letter/y/8e8cbc/32.png) [@yourday](https://forums.rocket.chat/u/yourday)\
**Post date:** [February 11, 2024, 10:29am UTC](https://forums.rocket.chat/t/rocketchat-loading-error-using-iframe-in-ios-webview/19440/1 "2024-02-11T10:29:18Z")

</div>

Rocketchat using iframe loads normally in android webview, but does not load in ios wkwebview.  
An error occurs in two places, and the exact cause is unknown.  
Could you possibly know the solution?  
\*\*(\***Even if you load the rocketchat channel directly into wkwebview, the same error occurs and it does not work.)**

**#ENV**  
iOS : 17.2  
Xcode : 15.2  
MacOs : Sonoma 14.3  
Rocketchat : 6.3.10

**#Error Message**  
\*TypeError: Cannot call a class constructor without new

\*There is no route for the path:“/channel/channelName/?layout=embedded”

**#iframe html code**

```auto
  <iframe id="cframe" name="cframe" src="https://abc.com/channel/channelName?layout=embedded" title="" width="100%" allow="camera;microphone"
                    sandbox="allow-modals allow-scripts allow-popups allow-forms allow-same-origin" style="overflow-x:hidden; overflow:auto; width:100%; min-height:400px;" ></iframe>

```

**#Error Screenshots**

 ![rocketchat_error_scr_re](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/e/ea6e379da62ad3c5a8bc860be185084553e113ff.png)

 ![rocketchat_error_re](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/9/94f5c8a4a894400a8a6c0925e1bc9cb16dba11cc.png)

 ![rc_err01_re](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/9/91df31d7ebae2901b740a69da50ed2955e32ea84.png)

 ![rc_err02_re](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/0/06d1fe9a142a419b58eb9f4fe69990195a6a1e84.png)
