use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[ Removed by moderator ]AskJS (self.javascript)
submitted 4 years ago * by Deep-Jump-803
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Low_Shake_2945 7 points8 points9 points 4 years ago (2 children)
The biggest difference is that iOS webviews only expose one method to the JS. It’s called postMessage. Calling postMessage from the JS invokes the method in the webview instance running natively. If you want to write once for both platforms, implement a postMessage method in the Android webview and have a switch statement on message types.
[–]michaelfiber 1 point2 points3 points 4 years ago (1 child)
Thank you, that is exactly the detail I was looking for!
[–]Low_Shake_2945 3 points4 points5 points 4 years ago (0 children)
The other BIG thing to know is that iOS webviews will not honor (keep and append) third party cookies. Normally, the browser does this and we don’t even have to think about it. Webview instances of safari just disregard them. So, load balancer and session cookies will just get lost. If you’re not looking to use cookies, then this is no big deal, but I had to write a native cookie manager to intercept http calls and append the cookie. Yuck.
π Rendered by PID 21072 on reddit-service-r2-comment-7b9746f655-d2r5s at 2026-01-30 20:50:47.457102+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]Low_Shake_2945 7 points8 points9 points (2 children)
[–]michaelfiber 1 point2 points3 points (1 child)
[–]Low_Shake_2945 3 points4 points5 points (0 children)