7

I have developed a Progressive Web App by using Javascript. I am unable to receive Push Notifications in iOS platform for my app, but at the same time i am receiving Notifications for Android and Web apps browsers. I read somewhere still no support for iOS notifications. Please help me if you guys have any info to achieve this.

SreeniMannem
  • 81
  • 1
  • 6

1 Answers1

10

All the leading browsers with the exception of Safari on iOS supports web push API. While Safari does support push notifications on Mac OS, there is no green signal for push notification iOS. Read full article here.

Push notification support for iOS Safari not added by Apple yet. So you need wait until support gets added. or you can think about alternatives like showing the notifications as alerts/pop ups/notification center in iOS PWA.

Rajesh G
  • 639
  • 4
  • 13
  • 2
    Thanks for this answer. What do you mean by "showing the notifications as alters/pop ups/notification center in iOS PWA." ? – Damien Romito Dec 31 '19 at 10:57
  • @DamienRomito - you can build a notification centre as a service. When ever user opens PWA and online, you and send call to notification centre service and fetch the notifications and show within the PWA itself. – Rajesh G Dec 31 '19 at 11:57
  • @RajeshG could you extend this comment? I am trying to build an alternative for my PWA. If I could send a notification from a PWA in iOS, even if the web-app needs to be open, that would be okay, but I don't understand your proposal using just javascript or server side code. – Jorge May 15 '20 at 10:48
  • @Jorge you need to build your own custom service for IOS based on your needs. This is what I will do, I will build URL which will return a JSON with notification details. I will not cache this URL in service worker. So, every time we open PWA from iPhone, this URL will be hit and fetch back JSON and using any JS library I will parse the JSON to add notifications to PWA. you need to be creative and implement your own solution. Hope this helps. – Rajesh G May 15 '20 at 22:35