RocketChat / RocketChat/Rocket.Chat

How to load Rocket.Chat inside an iframe in Webview iOS

Open
#31,736 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Rocketchat using iframe loads normally in android webview, but does not load in ios wkwebview.
(*Even if you load the rocketchat channel directly into wkwebview, the same error occurs and it does not work.)

Steps to reproduce:

1.The domain on which rocketchat is running is abc.com

  1. The site where rocketcat will be inserted using an iframe is call.com.

  2. Use the iframe tag on the call.com web page to load the rocketchat website installed on abc.com.

4.Load the call.com webpage into iOS wkwebview.

When loading, an error occurs in 2 lines in console.log and no progress is made.
It loads normally in browsers such as pc chrome, android chrome, android webview, and ios safari, but does not work properly only in ios WKWebView.

Server Setup Information:

iOS : 17.2
Rocketchat : 6.3.10
Nodejs : 14.21.3
OS: Centos 7.9
MongoDB : 5.0.22

Error Message(console.log)

*TypeError: Cannot call a class constructor without new
*There is no route for the path:"/channel/channelName/?layout=embedded"

Error Screenshots

rocketchat_error_scr_re

rocketchat_error_re rc_err01_re rc_err02_re

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the iframe and direct-channel cases in an iOS 17.2 WKWebView using the versions listed in the issue, then compare the console errors with the working browser and Android cases. Done means identifying a supported loading path or a confirmed Rocket.Chat fix for the constructor and missing-route errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.