Make sure to read https://developer.rocket.chat/rocket.chat/iframe-integration/adding-a-rocket.chat-chat-room-to-your-web-app
There are two important settings there:
Administration > Settings > General > Restrict access to any iframeneeds to be disabledAdministration > Settings > General > iframe Integration > Enable Receiveneeds to be enabled- Keep
Receive Originsas*
- Open Xcode and create a new iOS project.
- Choose the "App" template and click "Next."
- Enter your project details and make sure Swift is selected as the language.
- Go to ViewController.swift and overwrite it with the code below
- Make sure to a valid user token on
YOUR_TOKEN_HERE
Xcode 15.3
Macbook Pro M1 Pro
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-03-19.at.11.41.08.mp4