Does renderer.bundle.js hard-code port 13305 into the App? #2325
-
|
Finally have lemonade-server up on Fedora 44 with two AMD R9700's, and serving the local network over 0.0.0.0 on port 8080 (I recently changed to :8080 because Firefox allows sidebar > local there). Accessing http://server.ip:8080 on local desktops takes me to the local server's App. Accessing the same on my iPhone/iPad immediately takes me to Apple's App Store... scratches head I hooked the iPhone up to a local Mac, and Safari Web Inspector showed me: I noticed: and: So, I went digging, and couldn't find with these inside: Every time I go directly to http://server.ip:8080, Safari opens the App Store to the Lemonade App by Geramy Loveless . . . but no love lost! :) So, I changed the default port back to :13305, and I received the same result as above. M4 IPP gets the same results (Geramy's App works well there FWIW). Apple is always going to be Apple, but could it be that the hard-coded :13305 port I was expecting a direct line to the Lemonade App on the server using my iPhone/iPad just like the desktops... Oh, and many thanks for the tasty Lemonade :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I think the App Store jump is not caused by the In current source, the redirect is in
So on iPhone/iPad the bundle intentionally leaves the local web UI immediately. The For a local LAN web UI on mobile, the redirect in |
Beta Was this translation helpful? Give feedback.
I think the App Store jump is not caused by the
13305default.In current source, the redirect is in
src/app/src/renderer/index.tsx, before the React app is mounted:https://apps.apple.com/ca/app/lemonade-mobile/id6757372210<App />So on iPhone/iPad the bundle intentionally leaves the local web UI immediately. The
13305values you found are defaults/fallbacks: web mode injectswindow.api.isWebApp = true;serverConfig.tsthen useswindow.location.originas the base URL, and the C++ mock returnsparseInt(window.location.port) || 13305only as fallback.For a local LAN web UI on mobile, the redirect in
index.tsxwould need to be r…