ios 12 PWA web push notifications. Does it work? - ios

I am not able to find a way to enable web push notifications for a PWA app. Does that work in IOS like it does on android?

No the web push api is not yet available on the iOS yet (as of May 2019)
refer here https://developer.mozilla.org/en-US/docs/Web/API/PushManager

Related

iOS/iPadOS safari push api support

Does the iOS/iPadOS version of safari support push api standard with service worker?
EDIT: there is a petition you can sign to raise awareness on this topic
iOS don't support the W3C Spec web push notifications yet. But there is a Safari specific API for web notifications. Refer to this answer on multiple options you have.
https://stackoverflow.com/a/49803408/1057093
Update: Corrected the Answer in the above link to clarify proprietary solution is only for OS X - Safari and no solution for iOS Safari yet. Custom in app notification is the best we can do today for iOS Safari.
iOS 12, 13, and now iOS/iPadOS 14 still doesn't support these features:
Web Push Notification
Background Sync
Page Lifecycle
Service Workers on WebViews
Universal Links / Link Capturing
So many requests from the community for these features but Apple don't want to hear it. Maybe they think these features have a bigger chance to be unnecessary exploited(spam, etc). And also maybe they want to force developers to create the native application rather than the progressive web application.
I tested iOS 12 in beta last week and as Anand said, there is no change about this functionnality and more globally for Progressive Web App because the Web Manifest, in developpement at this moment is not implemented yet.
iOS 15.4 added a Push API feature in safari
Settings > Safari > Advanced > Experimental WebKitFeatures
but it is turned off by default.
That doesn't mean the Web Push Notification is fully supported in iOS but it is a hint that it might be coming soon.
Hopefully iOS 16 🤞
It still doesn't, but it was just announced that it's coming in 2023.
Source: https://webkit.org/blog/12824/news-from-wwdc-webkit-features-in-safari-16-beta/
(It's at the bottom of the "Web Push for macOS
" section)

Push notifications progressive web app on iOS

I need to develop a progressive web app with push notifications integrated. Searching on the web I have found diverse opinions about this subject.
If I have understood correctly, for now, we cannot have push notifications in safari for mobile (but only for Desktop). Is it right?
Do you have any suggestions to obtain the same result (I am not an iOS expert)? I was wondering that maybe developing a native app only for push notifications purposes could be a good choice until push notification will be ready also for safari mobile.
P.S. I am developing the PWA using Angular 2.
Thank you for the support.
Unfortunately, based this post and also this the latest iOS version(13.3) still doesn't support some features of progressive web app:
Web Push Notification
Background Sync
Page Lifecycle
Service Workers on WebViews
Universal Links / Link Capturing
Until now, no news that says will be implemented on the next version 14. As I said in the old post, I think iOS doesn't want to support these in PWA because these features have a bigger chance to be unnecessary exploited(spam, etc). And also maybe they want to force developers to create the native application rather than the progressive web application.
I just want to let you know: Apple will support push notifications for web apps! This news was published at the WWDC2022. Apple will release Web Push with Safari 16 on macOS (Ventura) in a few months (2022) and for iOS and iPadOS in 2023.
See: https://webkit.org/blog/12945/meet-web-push/
Until this is working, I will use this Flutter wrapper thats embeds the PWA in a Webview.

Azure App Service library for iOS apps (not Xamarin iOS) to work with Azure Push Notification Hubs, now that Mobile App Services is deprecated

Now that Microsoft has deprecated Mobile App Services iOS SDK, which is referenced in some of their examples (1.2.4 vs. last 2.2.2), and is transitioning to Azure App Service, there is no clear explanation of what to link to a Swift4 (or Objective-C) Xcode 9 project to modify for the Notification hub name and ListenSharedAccess URL. Please advise with example code an reference documents. This is for iOS app push notification with Azure Notification Hubs as connecting with the backend to register tokens etc., not Xamarin iOS (for which there is an example on MSFT site).
The iOS SDK for Azure Mobile Apps has recently been updated to v3.4.0.
This page has instructions for adding push notifications to your Mobile Apps project. I would recommend the iOS app not know anything directly about your notification hub, but instead send the device's push token to your App Service, which in turn can register the device with the notification hub.

How can send push notifications to web application on iOS devices?

I struggle to find a solution how can I send web push notification to iOS devices? For Android there is no problem I use service worker and GCM.
But I found service worker for iOS push notifications is under construction.Is there a way for iOS devices?
If by web application you consider an app that opens in Safari the answer is: you can't send web notifications to iOS. Documentation:
Notifications for websites do not appear on iOS
If your web application is a native app with web view in it for content loading then you'll have to use native push notifications.
Is there a way for iOS devices?
It's not possible at the moment and there isn't any workaround for websites.
You need to create a native or hybrid app for iOS if you want push notifications.
Let’s ask Apple to add Web Push Notifications to iOS

Push notification from web browser ios

I struggle to find a solution how can I send push notification to a mobile device from my web application. For Android there is no problem I use One Signal service. Is there a way for Iphone devices also
Thank you in advance!
Onesignal supports iOS platform too.
Using the browser app, you can call OneSignal API which in turn will trigger push notification to iOS app.
You need to have an iPhone app in conjunction with your browser app using which device token can be registered.
Official link : link
Video tutorial : link

Resources