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

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.

Related

Ionic 4 iOS app using APNS Push Notifications without a third party service

I would like to build an Ionic 4 app for iOS platform only (no android/windows/web version required) that supports APNS based Push Notifications. My backend is going to be NodeJS/ExpressJS based. After so many days of searching I wasn't able to find one solid example/solution that does not use a third party service such as OneSignal or Firebase. This is an enterprise app and we cannot use a thirdparty service other than Apple's APNS. We'd like to send the notification from our NodeJS backend to APNS (which I am well aware of how to implement). What've I've been suffering with is to find a good Ionic 4 library that allows me to interact with the OS's Push Notification capabilities such as capturing device token, listening for notifications when app is in foreground etc. Could someone please direct me to a good resource that shows how to accomplish this straightforward requirement of using Ionic 4 to work with ios push notifications sent via APNS?
My suggestion for you is to implement this functionality in swift and create a plugin which will call your javascript code.
I think this is a simple example of how to implement push notifications with swift.
You should get the phonegap-plugin-push plugin, which is popular and well mantained. It supports both APNS and Firebase, and it is remarkably well documented. Not sure about Ionic 4 support, but that's a solid starting point anyway.

ios 12 PWA web push notifications. Does it work?

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

Implement Push notifications on IOS PWA using Firebase Cloud Messaging

Currently I am working on a PWA, and the implementation of Web push notifications using FCM is working only for Android and web on desktop. Does there exist any approach to implement push notifications in IOS devices using Firebase Cloud Messaging? Specifically, can iOS receive push notifications in background mode?
You use it with Firebase or not, web push notifications in iOS has some limitations. Read on what is possible and what is not here.

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