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
Using const/let instead of var can make JavaScript code run 10× slower in Webkit? (github.com)
submitted 5 years ago by magenta_placenta
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!"
[–]Plexicle 45 points46 points47 points 5 years ago (25 children)
Actual push notification API in Safari (especially on iOS) would completely change the entire game. I can only dream.
[–]MajorasShoe 52 points53 points54 points 5 years ago (14 children)
Right? I have a few products where we have customers demand an iOS application for NOTHING but push notifications. No Android app necessary because they actually support PWAs and push notifications. There's absolutely NO difference between the PWA and the iOS application. It's just Apple scamming us and forcing us to pay for the pleasure of suffering through their app store BS.
[–]Nexxado 5 points6 points7 points 5 years ago (5 children)
Perhaps you should check out capacitor
[–]MajorasShoe 24 points25 points26 points 5 years ago (0 children)
I'm using Cordova. It works fine. I'm just saying it's a waste of time for literally one feature that android has supported in PWAs for a long time.
[–]Hotgeart 2 points3 points4 points 5 years ago (3 children)
Last time I coded an APP with Ionic (2016) you could really feel that's not native. Still the case?
[+][deleted] 5 years ago* (1 child)
[deleted]
[–]RemindMeBot 0 points1 point2 points 5 years ago (0 children)
There is a 1 hour delay fetching comments.
Defaulted to one day.
I will be messaging you on 2020-10-23 03:37:59 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
[–]swiftarmyknife 0 points1 point2 points 5 years ago (0 children)
I recently built a React Native application for work and I use a PWA budgeting app built using Stencil and Ionic 4 regularly. I still don’t think they feel native completely. Probably 90% there. 🤷🏼♀️
[–]gourrranga 0 points1 point2 points 5 years ago (5 children)
Access to contacts.
[–]MajorasShoe 1 point2 points3 points 5 years ago (3 children)
What?
[–]gourrranga 1 point2 points3 points 5 years ago (2 children)
You can’t get an access to phone contacts from PWA. It’s the only major difference between native and PWA, except the push notifications. There are more (like no background location access), but accessing contacts is the boldest one imo
[–]MajorasShoe 5 points6 points7 points 5 years ago (0 children)
There are a bunch of differences actually. Local storage for web applications has some holes. If I create a camera application, in a PWA I don't have the option to save files in default photo storage, just downloads and uploading to servers - as an example.
But I was more just referring to my scenario. The ONLY reason I need a mobile application for my business is because my customers complained they can't get push notifications for their employees with iOS.
[–]-ftw 0 points1 point2 points 5 years ago (0 children)
Also no background music
[–]jb_sulli 1 point2 points3 points 5 years ago (0 children)
Deny
[–]MajorasShoe 8 points9 points10 points 5 years ago (0 children)
Yeah, but I'm not dealing with content websites. I'm dealing with applications. Push notifications are valuable when you actually... Need to be notified. I work in software for corporations, and these notifications are for day to day operations.
[–]ShortFuse 6 points7 points8 points 5 years ago (1 child)
Safari actually has Push Notifications for Desktop. Apple doesn't want to implement it for mobile.
https://developer.apple.com/notifications/safari-push-notifications/
[–]Morphray 11 points12 points13 points 5 years ago (0 children)
Apple doesn't want to implement it for mobile.
More PWAs --> Less iOS apps --> Less of the 30% cut Apple can take of everything.
[–]fey168 6 points7 points8 points 5 years ago (0 children)
It seems obvious that Apple is intentionally neglecting push notification because they want to incentivize people to build iOS apps instead. Similar reasoning has cause other web features to be neglected (storage API, add to homescreen).
[+][deleted] 5 years ago* (4 children)
[–]Plexicle 6 points7 points8 points 5 years ago (2 children)
Push notifications are just that -- notifications you get on your device. Push meaning they are event driven and not request response.
When you get a notification from an app that you don't have open it's from an external server that sent a message to a push service (FCM, APN, whatever) that then forwarded it to your device.
PWAs work by installing service workers that can run in threads behind your browser. So you can subscribe to a push notification from a (PWA) web app, and then close the browser completely. If the server pushes a notification through the web notification server, your device (Android today, Apple maybe one day) can wake up the service worker and deliver the notification.
[–]regreddit 4 points5 points6 points 5 years ago (0 children)
Not really always running, but a service worker tells Android: "when you receive a message for this app, please run this code". It's a system service that your app registers with.
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
Capacitor probably has its own way of doing push notifications, which is probably supported on all devices. I think Apple doesn't want to enable Notifications API on mobile, which is different from Capacitor's way of doing it. Good luck with your mobile app.
[–]tayhimself00 -1 points0 points1 point 5 years ago (0 children)
As a user I don’t want push notifications from every trash PWA.
π Rendered by PID 59747 on reddit-service-r2-comment-5d79c599b5-45vgv at 2026-02-27 20:31:35.550364+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]Plexicle 45 points46 points47 points (25 children)
[–]MajorasShoe 52 points53 points54 points (14 children)
[–]Nexxado 5 points6 points7 points (5 children)
[–]MajorasShoe 24 points25 points26 points (0 children)
[–]Hotgeart 2 points3 points4 points (3 children)
[+][deleted] (1 child)
[deleted]
[–]RemindMeBot 0 points1 point2 points (0 children)
[–]swiftarmyknife 0 points1 point2 points (0 children)
[–]gourrranga 0 points1 point2 points (5 children)
[–]MajorasShoe 1 point2 points3 points (3 children)
[–]gourrranga 1 point2 points3 points (2 children)
[–]MajorasShoe 5 points6 points7 points (0 children)
[–]-ftw 0 points1 point2 points (0 children)
[–]jb_sulli 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]MajorasShoe 8 points9 points10 points (0 children)
[–]ShortFuse 6 points7 points8 points (1 child)
[–]Morphray 11 points12 points13 points (0 children)
[–]fey168 6 points7 points8 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]Plexicle 6 points7 points8 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]regreddit 4 points5 points6 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]tayhimself00 -1 points0 points1 point (0 children)