RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a user log in, open a websocket and a channel specific to that user, and wait for updates.
When we send a message to that user via their channel, we see the message without issue on a Windows system (all major browsers), Linux (Chrome) and AndroidOS (Chrome). However, if we go to the application on an iPhone via Chrome, we dont see the message when it’s pushed to the channel. No alert is generated indicating the message was even received.
I’ve seen some talk about webRTC sockets not working on an iPhone and was wondering if this is the case or not?
Edit: For clarity
Trending in Questions
Hello!
Suppose you are building workflow (order / task / payment) processing system with the following requirements:
Each workflow con...
New
I’m aware of 2 such projects, are there others?
git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
Hi all,
I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
Hi,
we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
Hello
I’ve been coding in Elixir for almost two years now because of my current job where we implemented Elixir in our application. But ...
New
Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! :smiley:
Mutonex gamedesign was finish...
New
Hi, I’m evaluating Ash as a foundation for our future business applications.
So far I love it, and there’s just one usecase I haven’t be...
New
Other Trending Topics
Hey there,
I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first.
...
New
Hi everyone :waving_hand:
I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #elixirconf-us
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #security
- #elixirconf-eu
- #api
- #forms
- #hex










Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
maz
Did you check with an android phone?
idi527
What does webrtc have to do with phoenix channels? Do you mean websockets? Can you post some code from the ios app?
Just in case, yes, webrtc on ios browsers has limited support as of now, and works only in safari.
RSP87
Yes - I unfortunately do not remember the OS they had. But I can confirm their mobile version of Chrome rendered the same as the desktop rendition of the application. Same user/channel as well.
RSP87
I realize now that my original post was confusing. Sorry for that.
I have a simple Phoenix based web application. It’s nothing specific to any client. The same application can be accessed via browsers on MacOS, Windows, mobile OS, etc.
The point I was trying to make is - when I open a web socket and a channel:
I was told that webrtc and iOS don’t play nice together - Hence my original point in the topic. I wondered if maybe that was the reason it wouldn’t work on iOS and work on other mediums without issue,
idi527
Are you actually using webrtc? I think you might be confusing it with websockets.
Phoenix channels can’t use webrtc as its transport, but they do use websockets by default. All browsers on iOS support websockets.
So, no. WebSockets work just fine in iOS browsers.
To better suggest why your iOS app fails to setup a channel, we might need to see some source code.
Metti
I don’t think WebSockets themselves are the problem here. iOS supports WebSockets, and Chrome on iOS uses Apple’s WebKit rather than the same Chromium networking stack you get on Windows or Android.
So if the connection works everywhere else but not on the iPhone, I’d look at the actual WebSocket handshake and connection lifecycle rather than assuming WebSockets aren’t supported.
I’d add explicit
onopen,onmessage,onerrorandoncloselogging on the client, and check the server logs at the same time. Also make sure you’re usingwss://if the page is being served over HTTPS. If the socket opens successfully but messages aren’t arriving, that’s a different problem from the connection failing altogether.There have also been real WebKit/iOS WebSocket regressions, so the iOS version can matter. But I’d first establish whether the socket is actually reaching
OPENon the iPhone. That should narrow this down considerably.One other thing worth checking is whether the code depends on a browser-specific WebSocket implementation or on background execution. iOS can be much more aggressive about suspending web pages, so a socket that works continuously on a desktop shouldn’t automatically be assumed to behave the same way on a phone.